diff --git a/core/blockchain.go b/core/blockchain.go index b39ddff5d8..c449408ce3 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1652,7 +1652,7 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types. } func (bc *BlockChain) handleStateUpdates(block *types.Block, update *state.StateUpdate) { - if bc.logger == nil || bc.logger.OnStateCommit != nil { + if bc.logger == nil || bc.logger.OnStateCommit == nil { return }