store := database.NewStore(testDB)
walletStore := database.NewWalletStore(testDB)
dispatcher := event.NewDispatcher()
- txPool := protocol.NewTxPool(store, dispatcher)
+ txPool := protocol.NewTxPool(store, nil, dispatcher)
- chain, err := protocol.NewChain(store, txPool, dispatcher)
+ chain, err := protocol.NewChain(store, txPool, nil, dispatcher)
if err != nil {
t.Fatal(err)
}
store := database.NewStore(testDB)
dispatcher := event.NewDispatcher()
- txPool := protocol.NewTxPool(store, dispatcher)
- chain, err := protocol.NewChain(store, txPool, dispatcher)
+ txPool := protocol.NewTxPool(store, nil, dispatcher)
+ chain, err := protocol.NewChain(store, txPool, nil, dispatcher)
if err != nil {
t.Fatal(err)
}
store := database.NewStore(testDB)
dispatcher := event.NewDispatcher()
- txPool := protocol.NewTxPool(store, dispatcher)
+ txPool := protocol.NewTxPool(store, nil, dispatcher)
- chain, err := protocol.NewChain(store, txPool, dispatcher)
+ chain, err := protocol.NewChain(store, txPool, nil, dispatcher)
if err != nil {
t.Fatal(err)
}