From cfcf112667ec556d395cd6037cde22e54cd413c1 Mon Sep 17 00:00:00 2001 From: colin <102356659+colinlyguo@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:21:16 +0800 Subject: [PATCH] fix(async-ccc): handle empty transaction block (#1006) * fix(async-ccc): handle empty transaction block * make the change smaller * make the diff smaller --- rollup/ccc/async_checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup/ccc/async_checker.go b/rollup/ccc/async_checker.go index b6542fdada4e..edb5b812aea8 100644 --- a/rollup/ccc/async_checker.go +++ b/rollup/ccc/async_checker.go @@ -171,7 +171,7 @@ func (c *AsyncChecker) checkerTask(block *types.Block, ccc *Checker, forkCtx con gasPool := new(core.GasPool).AddGas(header.GasLimit) ccc.Reset() - var accRc *types.RowConsumption + accRc := new(types.RowConsumption) for txIdx, tx := range block.Transactions() { if !isForkStillActive(forkCtx) { return noopCb