eth: don't accept transactions until we sync up with the network

This commit is contained in:
Péter Szilágyi
2016-06-02 15:54:07 +03:00
parent 826efc2295
commit 32559ccad1
3 changed files with 13 additions and 4 deletions

View File

@ -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()