OSDN Git Service

add unit test for netsync (#1162)
authorPaladz <yzhu101@uottawa.ca>
Wed, 25 Jul 2018 03:20:30 +0000 (11:20 +0800)
committerGitHub <noreply@github.com>
Wed, 25 Jul 2018 03:20:30 +0000 (11:20 +0800)
commitc44bfba63e7d6015e79d07a0e0122d14d07239d6
tree26ef905c8e6b41c6898092b115c35316292249cb
parentd6e1715e20097082c19e3a92e750374b0cdb8de8
add unit test for netsync (#1162)

* add unit test for block_keeper

* fix unit test error

* add unit test for locateHeaders

* add unit test for locateBlocks

* add unit test for TestNextCheckpoint

* add unit test for TestRequireBlock

* add unit test for regular block sync

* add unit test for TestFastBlockSync

* fix golint
netsync/block_fetcher.go
netsync/block_keeper.go
netsync/block_keeper_test.go [new file with mode: 0644]
netsync/handle.go
netsync/protocol_reactor.go
netsync/tool_test.go [new file with mode: 0644]
test/mock/chain.go [new file with mode: 0644]