You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a GetBlocks message is sent to a peer on the same tip as the sending node, with a stop hash zero, then the receiving node will not reply (as it has no inv to send:
Not sure what would be the correct fix here; to remove this special casing of regtest, or to not always expect an INV in return for this getblocks message.
The text was updated successfully, but these errors were encountered:
Technically we should probably consider INV to be required unless the last known block is the same as our last known block. Otherwise they have something they're withholding. It's tempting to change this: https://github.com/btcsuite/btcd/blob/2a560b2/netsync/manager.go#L256
to a <=, but following the comment, it's probably not a very good idea and it's likely to break a bunch of tests.
If a
GetBlocks
message is sent to a peer on the same tip as the sending node, with a stop hash zero, then the receiving node will not reply (as it has noinv
to send:btcd/server.go
Line 710 in 2a560b2
Currently I am experiencing this during tests on
regtest
, sinceregtest
is special cased to not do headers-first mode, and such aGetBlocks
message is sent at initial connect: https://github.com/btcsuite/btcd/blob/2a560b2/netsync/manager.go#L310Not sure what would be the correct fix here; to remove this special casing of
regtest
, or to not always expect anINV
in return for thisgetblocks
message.The text was updated successfully, but these errors were encountered: