98056e1ef2
When using the prestateTracer, in some cases users are only concerned with balances or nonce information, and are not interested in the lengthy contract code or storage data. Therefore, this PR introduces two new configuration options in the `prestateTracerConfig` structure: - `disableCode` - `disableStorage` These options allow users to control whether the tracer returns contract code and storage data during execution tracing. By setting these options, users can more flexibly customize their needs and focus on obtaining information that is more critical and relevant to their specific use cases. These options work with the default mode as well as `diffMode: true`. --------- Signed-off-by: jsvisa <delweng@gmail.com> Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com> |
||
---|---|---|
.. | ||
testdata | ||
calltrace_test.go | ||
flat_calltrace_test.go | ||
makeTest.js | ||
prestate_test.go | ||
README.md | ||
supply_test.go | ||
util.go |
Filling test cases
To fill test cases for the built-in tracers, the makeTest.js
script can be used. Given a transaction on a dev/test network, makeTest.js
will fetch its prestate and then traces with the given configuration.
In the Geth console do:
let tx = '0x...'
loadScript('makeTest.js')
makeTest(tx, { tracer: 'callTracer' })