mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 23:57:23 +00:00
As part of trying to make the inputs and outputs of the evm subcommands more streamlined and aligned, this PR modifies how `evm t8n` manages output-files. Previously, we do a kind of wonky thing where between each transaction, we invoke a `getTracer` closure. In that closure, we create a new output-file, a tracer, and then make the tracer stream output to the file. We also fiddle a bit to ensure that the file becomes properly closed. It is a kind of hacky solution we have in place. This PR changes it, so that from the execution-pipeline point of view, we have just a regular tracer. No fiddling with re-setting it or closing files. That particular tracer, however, is a bit special: it takes care of creating new files per transaction (in the tx-start-hook) and closing (on tx-end-hook). Also instantiating the right type of underlying tracer, which can be a json-logger or a custom tracer. --------- Co-authored-by: Gary Rong <garyrong0905@gmail.com>
38 lines
930 B
JSON
38 lines
930 B
JSON
[
|
|
{
|
|
"gas": "0x186a0",
|
|
"gasPrice": "0x600",
|
|
"input": "0x",
|
|
"nonce": "0x0",
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
"value": "0x1",
|
|
"v" : "0x0",
|
|
"r" : "0x0",
|
|
"s" : "0x0",
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
|
},
|
|
{
|
|
"gas": "0x186a0",
|
|
"gasPrice": "0x600",
|
|
"input": "0x",
|
|
"nonce": "0x1",
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
"value": "0x1",
|
|
"v" : "0x0",
|
|
"r" : "0x0",
|
|
"s" : "0x0",
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
|
},
|
|
{
|
|
"gas": "0x186a0",
|
|
"gasPrice": "0x600",
|
|
"input": "0x",
|
|
"nonce": "0x2",
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
"value": "0x1",
|
|
"v" : "0x0",
|
|
"r" : "0x0",
|
|
"s" : "0x0",
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
|
}
|
|
]
|