diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-11 18:13:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-11 18:13:05 +0800 |
commit | 10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223 (patch) | |
tree | 8da6f95a93dcd2774cede13be54aa3079ced7cab /core/blockchain_test.go | |
parent | 5596b664c4ca5be199bb93f87155fa2c1fa7eab2 (diff) | |
download | dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar.gz dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar.bz2 dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar.lz dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar.xz dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.tar.zst dexon-10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223.zip |
core: only fire one chain head per batch (#15123)
* core: only fire one chain head per batch
* miner: announce chan events synchronously
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r-- | core/blockchain_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 470974a0a..700a30a16 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -935,7 +935,7 @@ func TestReorgSideEvent(t *testing.T) { } gen.AddTx(tx) }) - chainSideCh := make(chan ChainSideEvent) + chainSideCh := make(chan ChainSideEvent, 64) blockchain.SubscribeChainSideEvent(chainSideCh) if _, err := blockchain.InsertChain(replacementBlocks); err != nil { t.Fatalf("failed to insert chain: %v", err) |