followup to last commit

This commit is contained in:
Jared Wasinger 2026-01-29 08:53:22 -05:00
parent 3435849244
commit 5a88101fa8
4 changed files with 1 additions and 6 deletions

View file

@ -2216,7 +2216,6 @@ func (bc *BlockChain) ProcessBlock(parentRoot common.Hash, block *types.Block, s
// optimized execution path for blocks which contain BALs
if blockHasAccessList {
panic("TODO: strip bal from body before committing it to disk")
return bc.processBlockWithAccessList(parentRoot, block, setHead)
}

View file

@ -709,7 +709,6 @@ func ReadBlock(db ethdb.Reader, hash common.Hash, number uint64) *types.Block {
func WriteBlock(db ethdb.KeyValueWriter, block *types.Block) {
WriteBody(db, block.Hash(), block.NumberU64(), block.Body())
WriteHeader(db, block.Header())
panic("TODO write access list if it exists")
}
// WriteAncientBlocks writes entire block data into ancient store and returns the total written size.

View file

@ -462,7 +462,6 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
if t := st.evm.Config.Tracer; t != nil && t.OnGasChange != nil {
t.OnGasChange(st.gasRemaining, st.gasRemaining-gas, tracing.GasChangeTxIntrinsicGas)
}
fmt.Printf("gas used %d\n", gas)
st.gasRemaining -= gas
if rules.IsEIP4762 {
@ -569,8 +568,6 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
}
}
fmt.Printf("2 used gas is %d, %d\n", st.gasUsed(), peakGasUsed)
return &ExecutionResult{
UsedGas: peakGasUsed,
MaxUsedGas: peakGasUsed,

View file

@ -227,7 +227,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, witness bool, createAnd
var blocksWithBAL types.Blocks
for i := uint64(1); i <= chain.CurrentBlock().Number.Uint64(); i++ {
block := chain.GetBlockByNumber(i)
if block.Body().AccessList == nil {
if block.AccessList() == nil {
return fmt.Errorf("block %d missing BAL", block.NumberU64())
}
blocksWithBAL = append(blocksWithBAL, block)