Closed hugo082 closed 2 years ago
I will work on it to fix tests, can you just give me some feedback to confirm the chosen solution? Maybe there is a more efficient way to implement this feature? 🚀
This will be too much of a dos vector to have enabled by default. If it's something you need it should be behind a feature flag
In order to allow an easier transaction simulation via the
eth_callBundle
method, we introduce a new parameterstateTransactionHash
that should be in thestateBlockNumber
child. If this parameter is provided, we will execute all transactions from index 0 to the state transaction index (included).Example
0x0
0x1
0x2
0xB
0x3
0x4
0x5
A call to
eth_callBundle
with:stateBlockNumber=0xA
andstateTransactionHash=0x4
will result to a state at the end of the transaction0x4
stateBlockNumber=0xA
and withoutstateTransactionHash
will result to a state at the end of the block0xA
stateBlockNumber=0xA
and anystateTransactionHash
different than0x3
,0x4
or0x5
is invalid