We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From what I can tell, bcoin refuses to accept chain locators with more than 50000 hashes:
Class GetBlocksPacket ... fromReader()...:
Class GetBlocksPacket ... fromReader()...
bcoin/lib/net/packets.js
Line 1040 in b7280a1
net/common.js:
net/common.js
bcoin/lib/net/common.js
Line 203 in b7280a1
However, Bitcoin Core has a separate value for this limit and it is much, much smaller (101):
https://github.com/bitcoin/bitcoin/blob/master/src/net_processing.cpp#L71-L72
/** The maximum number of entries in a locator */ static const unsigned int MAX_LOCATOR_SZ = 101;
... violations of this limit result in peer disconnection: https://github.com/bitcoin/bitcoin/blob/dbcb5742c48fd26f77e500291d7083e12eec741b/src/net_processing.cpp#L3006-L3010
if (locator.vHave.size() > MAX_LOCATOR_SZ) { LogPrint(BCLog::NET, "getblocks locator size %lld > %d, disconnect peer=%d\n", locator.vHave.size(), MAX_LOCATOR_SZ, pfrom.GetId()); pfrom.fDisconnect = true; return; }
LUCKILY right now even with almost 700,000 blocks in the chain, locators are only about 30 hashes. So this not urgent.
The text was updated successfully, but these errors were encountered:
Do we need this limit to be decreased from 50,000 to 101?
Sorry, something went wrong.
@pinheadmz Can I pick this up?
No branches or pull requests
From what I can tell, bcoin refuses to accept chain locators with more than 50000 hashes:
Class GetBlocksPacket ... fromReader()...
:bcoin/lib/net/packets.js
Line 1040 in b7280a1
net/common.js
:bcoin/lib/net/common.js
Line 203 in b7280a1
However, Bitcoin Core has a separate value for this limit and it is much, much smaller (101):
https://github.com/bitcoin/bitcoin/blob/master/src/net_processing.cpp#L71-L72
... violations of this limit result in peer disconnection:
https://github.com/bitcoin/bitcoin/blob/dbcb5742c48fd26f77e500291d7083e12eec741b/src/net_processing.cpp#L3006-L3010
LUCKILY right now even with almost 700,000 blocks in the chain, locators are only about 30 hashes. So this not urgent.
The text was updated successfully, but these errors were encountered: