Comments (2)
If you apply the get_blob_gasprice
function from the EIP-4844 to the currentExcessBlobGas
value, you get 0x02
as the result, the transaction has maxFeePerBlobGas==0x01
which is lower than the minimum value the current environment expects, therefore the transaction is invalid.
from execution-spec-tests.
Adding here as I wrote it out already :D
From the EIP we have the following formula:
def get_blob_gasprice(header: Header) -> int:
return fake_exponential(
MIN_BLOB_GASPRICE,
header.excess_blob_gas,
BLOB_GASPRICE_UPDATE_FRACTION
)
If we utilize currentExcessBlobGas
from the env
, we end up with a positive value for get_blob_gasprice
. As Mario mentioned specifically 0x02
.
For the tx to be valid, it must pass this check (from the EIP):
assert tx.max_fee_per_blob_gas >= get_blob_gasprice(block.header)
As "maxFeePerBlobGas" : "0x01"
< 0x02
, the tx is invalid, with the error: INSUFFICIENT_MAX_FEE_PER_BLOB_GAS
.
from execution-spec-tests.
Related Issues (20)
- feat(forks): define forks as an enum HOT 1
- feat(forks): define an enum that contains all available forks HOT 1
- feat(tests): ethereum/tests port (Mega Issue)
- IDEA: add debug functions
- Parent Beacon Root in StateTest fixtures HOT 1
- Make use of features from solc 0.8.23 release HOT 3
- generated folder name is state_tests but cmd is -m state_test HOT 2
- feat: Add field to `Transaction` to make verifications on the t8n result
- Invalid fork name `ShanghaiToCancunAtTime15k` in `state_tests`. HOT 1
- git ignore __pycache__ HOT 1
- Filled state tests to have 1 post state for one fork only
- question: beacon hash = 0x00..00 is implicit HOT 1
- do we need "blocknumber" : "1", in rlp_decoded section of invalid block? HOT 2
- rlp_decoded vs provided rlp inconsistency HOT 6
- invalid blocks must have valid rlp structure HOT 3
- invalid block json description HOT 2
- feat(fw): add pretty printing of vm traces HOT 5
- Op.DELEGATECALL accept incorrect number of arguments HOT 2
- feat(fw): add versioning to the `_info` section of fixtures
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from execution-spec-tests.