Skip to content

Commit 4a138ce

Browse files
committed
save row cosumption
1 parent 4f2963a commit 4a138ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rollup/state_processor/pipelined_state_processor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"time"
77

88
"github.com/scroll-tech/go-ethereum/core"
9+
"github.com/scroll-tech/go-ethereum/core/rawdb"
910
"github.com/scroll-tech/go-ethereum/core/state"
1011
"github.com/scroll-tech/go-ethereum/core/types"
1112
"github.com/scroll-tech/go-ethereum/core/vm"
@@ -64,5 +65,6 @@ func (p *Processor) Process(block *types.Block, statedb *state.StateDB, cfg vm.C
6465
return nil, nil, 0, res.CCCErr
6566
}
6667

68+
rawdb.WriteBlockRowConsumption(p.chain.Database(), block.Hash(), res.Rows)
6769
return res.FinalBlock.Receipts, res.FinalBlock.CoalescedLogs, res.FinalBlock.Header.GasUsed, nil
6870
}

0 commit comments

Comments
 (0)