mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
check gas fee in validation mode
This commit is contained in:
parent
9fa1556dff
commit
7177f22222
2 changed files with 3 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header
|
|||
tracer = newTracer(sim.traceTransfers, blockContext.BlockNumber.Uint64(), common.Hash{}, common.Hash{}, 0)
|
||||
config = sim.b.ChainConfig()
|
||||
vmConfig = &vm.Config{
|
||||
NoBaseFee: true,
|
||||
NoBaseFee: !sim.validate,
|
||||
// Block hash will be repaired after execution.
|
||||
Tracer: tracer,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -620,8 +620,8 @@ web3._extend({
|
|||
new web3._extend.Method({
|
||||
name: 'simulateV1',
|
||||
call: 'eth_simulateV1',
|
||||
params: 3,
|
||||
inputFormatter: [null, web3._extend.formatters.inputDefaultBlockNumberFormatter, null],
|
||||
params: 2,
|
||||
inputFormatter: [null, web3._extend.formatters.inputDefaultBlockNumberFormatter],
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'getBlockReceipts',
|
||||
|
|
|
|||
Loading…
Reference in a new issue