diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-06 20:12:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-06 20:12:27 +0800 |
commit | fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d (patch) | |
tree | 9955f4f42ecc8f946daf064ff68df58c38225801 /eth/protocol_test.go | |
parent | 826efc22957bfdc4e23775f71ad77fdeed11fd6e (diff) | |
parent | 32559ccad1e0519ce1decc4b90df021fe215a811 (diff) | |
download | dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar.gz dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar.bz2 dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar.lz dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar.xz dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.tar.zst dexon-fdd61b83ffe1ac0e3ef0621acbd92dd61df9910d.zip |
Merge pull request #2649 from karalabe/omit-startup-tx-processing
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.go | 1 |
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() |