|
|
|
@ -71,7 +71,7 @@ func TestChainInsertions(t *testing.T) { |
|
|
|
|
var eventMux event.TypeMux |
|
|
|
|
chainMan := NewChainManager(&eventMux) |
|
|
|
|
txPool := NewTxPool(&eventMux) |
|
|
|
|
blockMan := NewBlockManager(txPool, chainMan, &eventMux) |
|
|
|
|
blockMan := NewBlockProcessor(txPool, chainMan, &eventMux) |
|
|
|
|
chainMan.SetProcessor(blockMan) |
|
|
|
|
|
|
|
|
|
const max = 2 |
|
|
|
@ -115,7 +115,7 @@ func TestChainMultipleInsertions(t *testing.T) { |
|
|
|
|
var eventMux event.TypeMux |
|
|
|
|
chainMan := NewChainManager(&eventMux) |
|
|
|
|
txPool := NewTxPool(&eventMux) |
|
|
|
|
blockMan := NewBlockManager(txPool, chainMan, &eventMux) |
|
|
|
|
blockMan := NewBlockProcessor(txPool, chainMan, &eventMux) |
|
|
|
|
chainMan.SetProcessor(blockMan) |
|
|
|
|
done := make(chan bool, max) |
|
|
|
|
for i, chain := range chains { |
|
|
|
|