mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 16:01:36 +00:00
When a chain has gasCostPerStateByte != 0 (EIP-8037), the txpool admission requires tx.Gas() >= ceil(intrGas.RegularGas * 10/9), but the error message reported intrGas.RegularGas as the "minimum needed", which is the unscaled value below the real threshold. This is confusing: the user sees e.g. "gas 21000, minimum needed 21000" for a simple transfer and assumes the comparison is broken, when in fact the pool wants 23334. Compute the threshold once and report it in the error. |
||
|---|---|---|
| .. | ||
| blobpool | ||
| legacypool | ||
| locals | ||
| errors.go | ||
| reserver.go | ||
| subpool.go | ||
| txpool.go | ||
| validation.go | ||
| validation_test.go | ||