diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index 1af47538d..12d8be085 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -580,7 +580,7 @@ func (s *service) getVerifiedTx() []block.Transaction { var txx []*transaction.Transaction - if s.dbft.ViewNumber > 0 { + if s.dbft.ViewNumber > 0 && len(s.lastProposal) > 0 { txx = make([]*transaction.Transaction, 0, len(s.lastProposal)) for i := range s.lastProposal { if tx, ok := pool.TryGetValue(s.lastProposal[i]); ok {