add NilJournal; fix call sites to ChainStore constructor.

This commit is contained in:
Raúl Kripalani
2020-07-17 19:10:47 +01:00
parent 4bcf01938c
commit becbff0b13
9 changed files with 37 additions and 8 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import (
"github.com/filecoin-project/lotus/chain/store"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/vm"
"github.com/filecoin-project/lotus/journal"
)
// Applier applies messages to state trees and storage.
@@ -67,7 +68,7 @@ func (a *Applier) ApplySignedMessage(epoch abi.ChainEpoch, msg *vtypes.SignedMes
}
func (a *Applier) ApplyTipSetMessages(epoch abi.ChainEpoch, blocks []vtypes.BlockMessagesInfo, rnd vstate.RandomnessSource) (vtypes.ApplyTipSetResult, error) {
cs := store.NewChainStore(a.stateWrapper.bs, a.stateWrapper.ds, a.syscalls)
cs := store.NewChainStore(a.stateWrapper.bs, a.stateWrapper.ds, a.syscalls, journal.NilJournal())
sm := stmgr.NewStateManager(cs)
var bms []stmgr.BlockMessages