go-verkle icon indicating copy to clipboard operation
go-verkle copied to clipboard

Ensure that witness costs are charged per-tx and not per-block

Open gballet opened this issue 3 years ago • 1 comments

The EIP definitions have changed, and the witness costs have to be charged per-transaction. We need to ensure that this is what the code does, because the old behavior was to charge said costs per-block.

gballet avatar Nov 30 '21 09:11 gballet

In https://github.com/gballet/go-ethereum/pull/37, I'm fairly sure this is the case. The AccessWitness used is per-TxContext (which as the name implies, only exists for the lifetime of a transaction).

jwasinger avatar Dec 02 '21 06:12 jwasinger

Long fixed. Closing.

gballet avatar Aug 28 '24 15:08 gballet