Skip to content

Commit f8fd895

Browse files
committed
fix regression
1 parent 3c9e9e9 commit f8fd895

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

data/pools/transactionPool.go

+4
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ func (pool *TransactionPool) recomputeBlockEvaluator(committedTxIds map[transact
760760
}
761761
pool.pendingBlockEvaluator, err = pool.ledger.StartEvaluator(next.BlockHeader, hint, pool.calculateMaxTxnBytesPerBlock(next.BlockHeader.CurrentProtocol))
762762
if err != nil {
763+
// The pendingBlockEvaluator is an interface, and in case of an evaluator error
764+
// we want to remove the interface itself rather then keeping an interface
765+
// to a nil.
766+
pool.pendingBlockEvaluator = nil
763767
var nonSeqBlockEval ledgercore.ErrNonSequentialBlockEval
764768
if errors.As(err, &nonSeqBlockEval) {
765769
if nonSeqBlockEval.EvaluatorRound <= nonSeqBlockEval.LatestRound {

0 commit comments

Comments
 (0)