-
Notifications
You must be signed in to change notification settings - Fork 20.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/evm: implement input txs via rlp in t8n tool (#23138)
In many cases, it's desireable to use already-signed transactions as input to the state transition, instead of having the evm sign them internally (for example to use malformed or not-yet-valid transactions). This PR adds support + docs for that feature.
- Loading branch information
Showing
8 changed files
with
240 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"0x1111111111111111111111111111111111111111" : { | ||
"balance" : "0x010000000000", | ||
"code" : "0xfe", | ||
"nonce" : "0x01", | ||
"storage" : { | ||
} | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x010000000000", | ||
"code" : "0x", | ||
"nonce" : "0x01", | ||
"storage" : { | ||
} | ||
}, | ||
"0xd02d72e067e77158444ef2020ff2d325f929b363" : { | ||
"balance" : "0x01000000000000", | ||
"code" : "0x", | ||
"nonce" : "0x01", | ||
"storage" : { | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"currentDifficulty" : "0x020000", | ||
"currentNumber" : "0x01", | ||
"currentTimestamp" : "0x079e", | ||
"previousHash" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f", | ||
"currentGasLimit" : "0x40000000", | ||
"currentBaseFee" : "0x036b", | ||
"blockHashes" : { | ||
"0" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Input transactions in RLP form | ||
|
||
This testdata folder is used to examplify how transaction input can be provided in rlp form. | ||
Please see the README in `evm` folder for how this is performed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[ | ||
{ | ||
"input" : "0x", | ||
"gas" : "0x84d0", | ||
"nonce" : "0x1", | ||
"to" : "0x1111111111111111111111111111111111111111", | ||
"value" : "0x0", | ||
"v" : "0x0", | ||
"r" : "0x0", | ||
"s" : "0x0", | ||
"secretKey" : "0x41f6e321b31e72173f8ff2e292359e1862f24fba42fe6f97efaf641980eff298", | ||
"chainId" : "0x1", | ||
"type" : "0x2", | ||
"maxFeePerGas" : "0xfa0", | ||
"maxPriorityFeePerGas" : "0x0", | ||
"accessList" : [] | ||
}, | ||
{ | ||
"input" : "0x", | ||
"gas" : "0x84d0", | ||
"nonce" : "0x2", | ||
"to" : "0x1111111111111111111111111111111111111111", | ||
"value" : "0x0", | ||
"v" : "0x0", | ||
"r" : "0x0", | ||
"s" : "0x0", | ||
"secretKey" : "0x41f6e321b31e72173f8ff2e292359e1862f24fba42fe6f97efaf641980eff298", | ||
"chainId" : "0x1", | ||
"type" : "0x2", | ||
"maxFeePerGas" : "0xfa0", | ||
"maxPriorityFeePerGas" : "0x0", | ||
"accessList" : [] | ||
} | ||
] |
Oops, something went wrong.