mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 14:50:42 +01:00
* Pull over test cases, WIP * Rework ChainHandler.nextBlockHeaderRange() to use hashes rather than heights to very integrity of header chain, add test case * Modify test case to make sure we are generating the 'heaviest chain work' header as first in the tuple that is used in reorg test cases * Refactor to helper method called 'findNextHeader()' to make things simpler * Add scaladoc to ChainHandler.findNextHeader() * WIP * Fix bugs in ChainApi.nextBlockHeaderRange(), now return (startHeight,stopHash) rather than (stopHeight,stopHash) * Get chain handler tests passing, remove genesis filter header/fitler from default chain project fixture, make it a specialized one to have genesis filter header/filter in the database. Use that specialized fixture in ChainHandlerTest for now * FilterSync work without having the genesis filter and filter header inserted into the database * fix bug in DataMessageHandler where we were using sendNextGetCompactFilterHeadersCommand rather than using peerMsgSender.sendGetCompactFilterHeadersMessage * Refactor ChainHandler.findNextHeader() to centralize where chains are fetched * Address ben's code review |
||
---|---|---|
.. | ||
src/test/scala/org/bitcoins/node |