aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-02 20:54:07 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-06 19:45:38 +0800
commit32559ccad1e0519ce1decc4b90df021fe215a811 (patch)
tree9955f4f42ecc8f946daf064ff68df58c38225801 /eth/protocol_test.go
parent826efc22957bfdc4e23775f71ad77fdeed11fd6e (diff)
downloadgo-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar.gz
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar.bz2
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar.lz
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar.xz
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.tar.zst
go-tangerine-32559ccad1e0519ce1decc4b90df021fe215a811.zip
eth: don't accept transactions until we sync up with the network
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r--eth/protocol_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go
index 0a82e2e79..f860d0a35 100644
--- a/eth/protocol_test.go
+++ b/eth/protocol_test.go
@@ -97,6 +97,7 @@ func TestRecvTransactions63(t *testing.T) { testRecvTransactions(t, 63) }
func testRecvTransactions(t *testing.T, protocol int) {
txAdded := make(chan []*types.Transaction)
pm := newTestProtocolManagerMust(t, false, 0, nil, txAdded)
+ pm.synced = 1 // mark synced to accept transactions
p, _ := newTestPeer("peer", protocol, pm, true)
defer pm.Stop()
defer p.close()