diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index 39c7de9e2..8faf2c080 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -253,7 +253,13 @@ func (s *service) getTx(h util.Uint256) block.Transaction { tx, _, _ := s.Config.Chain.GetTransaction(h) - return tx + // this is needed because in case of absent tx dBFT expects to + // get nil interface, not a nil pointer to any concrete type + if tx != nil { + return tx + } + + return nil } func (s *service) verifyBlock(b block.Block) bool {