aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-11 18:13:05 +0800
committerGitHub <noreply@github.com>2017-09-11 18:13:05 +0800
commit10b3f97c9dcc6f3711aa2d3b1bb43e67eb921223 (patch)
tree8da6f95a93dcd2774cede13be54aa3079ced7cab /core/blockchain_test.go
parent5596b664c4ca5be199bb93f87155fa2c1fa7eab2 (diff)
downloaddexon-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.go2
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)