|
|
|
@ -267,8 +267,7 @@ func TestChainInsertions(t *testing.T) { |
|
|
|
|
|
|
|
|
|
var eventMux event.TypeMux |
|
|
|
|
chainMan := NewChainManager(db, db, thePow(), &eventMux) |
|
|
|
|
txPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) }) |
|
|
|
|
blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) |
|
|
|
|
blockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux) |
|
|
|
|
chainMan.SetProcessor(blockMan) |
|
|
|
|
|
|
|
|
|
const max = 2 |
|
|
|
@ -313,8 +312,7 @@ func TestChainMultipleInsertions(t *testing.T) { |
|
|
|
|
} |
|
|
|
|
var eventMux event.TypeMux |
|
|
|
|
chainMan := NewChainManager(db, db, thePow(), &eventMux) |
|
|
|
|
txPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) }) |
|
|
|
|
blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) |
|
|
|
|
blockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux) |
|
|
|
|
chainMan.SetProcessor(blockMan) |
|
|
|
|
done := make(chan bool, max) |
|
|
|
|
for i, chain := range chains { |
|
|
|
|