diff options
Diffstat (limited to 'blockpool/peers_test.go')
-rw-r--r-- | blockpool/peers_test.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/blockpool/peers_test.go b/blockpool/peers_test.go index 62e059337..e32bb6fc8 100644 --- a/blockpool/peers_test.go +++ b/blockpool/peers_test.go @@ -144,7 +144,8 @@ func TestAddPeer(t *testing.T) { blockPool.Stop() } -func TestPeerPromotionByOptionalTdOnBlock(t *testing.T) { +func TestPeerPromotionByTdOnBlock(t *testing.T) { + t.Skip() test.LogInit() _, blockPool, blockPoolTester := newTestBlockPool(t) blockPoolTester.blockChain[0] = nil @@ -168,13 +169,8 @@ func TestPeerPromotionByOptionalTdOnBlock(t *testing.T) { best = peer2.AddPeer() peer2.serveBlocks(3, 4) peer2.serveBlockHashes(4, 3, 2, 1) - hashes := blockPoolTester.hashPool.IndexesToHashes([]int{2, 3}) - peer1.waitBlocksRequests(3) - blockPool.AddBlock(&types.Block{ - HeaderHash: common.Hash(hashes[1]), - ParentHeaderHash: common.Hash(hashes[0]), - Td: common.Big3, - }, "peer1") + // hashes := blockPoolTester.hashPool.IndexesToHashes([]int{2, 3}) + peer1.serveBlocks(2, 3) blockPool.RemovePeer("peer2") if blockPool.peers.best.id != "peer1" { |