478012ab23
rebased https://github.com/ethereum/go-ethereum/pull/29766 . The downstream branch appears to have been deleted and I don't have perms to push to that fork. `TerminalTotalDifficultyPassed` is removed. `TerminalTotalDifficulty` must now be non-nil, and it is expected that networks are already merged: we can only import PoW/Clique chains, not produce blocks on them. --------- Co-authored-by: stevemilk <wangpeculiar@gmail.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' })