Skip to content

Commit

Permalink
save row cosumption
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Jul 10, 2024
1 parent 4f2963a commit 4a138ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollup/state_processor/pipelined_state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"

"github.com/scroll-tech/go-ethereum/core"
"github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/core/state"
"github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/core/vm"
Expand Down Expand Up @@ -64,5 +65,6 @@ func (p *Processor) Process(block *types.Block, statedb *state.StateDB, cfg vm.C
return nil, nil, 0, res.CCCErr
}

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

0 comments on commit 4a138ce

Please sign in to comment.