forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse t8n command txs properly (hyperledger#5193)
When receiving transactions from a file parse them as an RLP list. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com> Co-authored-by: Antoine Toulme <antoine@toulme.name>
- Loading branch information
Showing
2 changed files
with
158 additions
and
48 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
87 changes: 87 additions & 0 deletions
87
ethereum/evmtool/src/test/resources/org/hyperledger/besu/evmtool/t8n/shanghai-invalidTx.json
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,87 @@ | ||
{ | ||
"cli": [ | ||
"t8n", | ||
"--input.alloc=stdin", | ||
"--input.txs=stdin", | ||
"--input.env=stdin", | ||
"--output.result=stdout", | ||
"--output.alloc=stdout", | ||
"--output.body=stdout", | ||
"--state.fork=Shanghai", | ||
"--state.chainid=1", | ||
"--state.reward=2000000000000000000" | ||
], | ||
"stdin": { | ||
"alloc": { | ||
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { | ||
"balance": "0", | ||
"code": "0x", | ||
"nonce": "1", | ||
"storage": { | ||
} | ||
}, | ||
"095e7baea6a6c7c4c2dfeb977efac326af552d87": { | ||
"balance": "1000000000000000000", | ||
"code": "0x600160010160005500", | ||
"nonce": "0", | ||
"storage": { | ||
} | ||
}, | ||
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { | ||
"balance": "1000000000000000000", | ||
"code": "0x", | ||
"nonce": "0", | ||
"storage": { | ||
} | ||
} | ||
}, | ||
"txs": "0xf864f862800a8203e894095e7baea6a6c7c4c2dfeb977efac326af552d87830186a0801ba0bb6249049eb38732aa28ef23385945e51c9582c7fab78bd33f6086bd4181615da035118c5432cd6a3bdd6f989d4eee3d43d11736e640bc249d9a2c37e01db3d4b5", | ||
"env": { | ||
"currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"currentGasLimit": "0xFF112233445566", | ||
"currentNumber": "1", | ||
"currentTimestamp": "1000", | ||
"currentDifficulty": "0x20000", | ||
"currentBaseFee": "0xa", | ||
"blockHashes": { | ||
"0": "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" | ||
}, | ||
"ommers": [], | ||
"previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" | ||
} | ||
}, | ||
"stdout": { | ||
"alloc": { | ||
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87": { | ||
"code": "0x600160010160005500", | ||
"balance": "0x1000000000000000000" | ||
}, | ||
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { | ||
"balance": "0x0", | ||
"nonce": "0x1" | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { | ||
"balance": "0x1000000000000000000" | ||
} | ||
}, | ||
"body": "0xf864f862800a8203e894095e7baea6a6c7c4c2dfeb977efac326af552d87830186a0801ba0bb6249049eb38732aa28ef23385945e51c9582c7fab78bd33f6086bd4181615da035118c5432cd6a3bdd6f989d4eee3d43d11736e640bc249d9a2c37e01db3d4b5", | ||
"result": { | ||
"stateRoot": "0xec92f4c572101075d17eb5aaf15c33df92b6d5519cbed635fc53353b99e8e6da", | ||
"txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"receipts": [], | ||
"rejected": [ | ||
{ | ||
"index": 0, | ||
"error": "intrinsic gas cost 21000 exceeds gas limit 1000" | ||
} | ||
], | ||
"currentDifficulty": "0x20000", | ||
"gasUsed": "0x0", | ||
"currentBaseFee": "0xa", | ||
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" | ||
} | ||
} | ||
} |