mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
fix some tests
This commit is contained in:
parent
ebcabb7b3e
commit
5031b5f15b
2 changed files with 5 additions and 1 deletions
|
|
@ -2156,6 +2156,10 @@ func (bc *BlockChain) ProcessBlock(parentRoot common.Hash, block *types.Block, s
|
||||||
}
|
}
|
||||||
ptime = time.Since(pstart)
|
ptime = time.Since(pstart)
|
||||||
|
|
||||||
|
// TODO: remove. gross. shouldn't have to manually call Finalise
|
||||||
|
// to pull in post-tx-execution state changes to the BAL here.
|
||||||
|
balTracer.Finalise()
|
||||||
|
|
||||||
// unset the BAL-creation tracer (dirty)
|
// unset the BAL-creation tracer (dirty)
|
||||||
bc.cfg.VmConfig.Tracer = nil
|
bc.cfg.VmConfig.Tracer = nil
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, witness bool, createAnd
|
||||||
for i := uint64(1); i <= chain.CurrentBlock().Number.Uint64(); i++ {
|
for i := uint64(1); i <= chain.CurrentBlock().Number.Uint64(); i++ {
|
||||||
block := chain.GetBlockByNumber(i)
|
block := chain.GetBlockByNumber(i)
|
||||||
if block.Body().AccessList == nil {
|
if block.Body().AccessList == nil {
|
||||||
return fmt.Errorf("block missing BAL")
|
return fmt.Errorf("block %d missing BAL", block.NumberU64())
|
||||||
}
|
}
|
||||||
blocksWithBAL = append(blocksWithBAL, block)
|
blocksWithBAL = append(blocksWithBAL, block)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue