mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Only MAX_BLOCK_HEADERS - 1 (511) headers sent during sync, instead of MAX_BLOCK_HEADERS (512) (#2116)
This commit is contained in:
parent
0ce8f3e1cd
commit
62d644e1f4
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ impl p2p::ChainAdapter for NetToChainAdapter {
|
||||||
// looks like we know one, getting as many following headers as allowed
|
// looks like we know one, getting as many following headers as allowed
|
||||||
let hh = header.height;
|
let hh = header.height;
|
||||||
let mut headers = vec![];
|
let mut headers = vec![];
|
||||||
for h in (hh + 1)..(hh + (p2p::MAX_BLOCK_HEADERS as u64)) {
|
for h in (hh + 1)..=(hh + (p2p::MAX_BLOCK_HEADERS as u64)) {
|
||||||
if h > max_height {
|
if h > max_height {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue