chaintope / tapyrus-core

Tapyrus Core
MIT License
46 stars 17 forks source link

security fix 2 - Only send a getheaders for one block in an INV #313

Closed Naviabheeman closed 2 weeks ago

Naviabheeman commented 3 weeks ago

Port fixes from bitcoin: 18962 - Only send a getheaders for one block in an INV

Functional test for this is ported from bitcoin. But the expected results are different from the same test in bitcoin. This is because of the protocol changes made in bitcoin regarding the number of peers to get headers from during IBD. In papyrus there is no restriction. so all peers get and send the headers message.