-
Notifications
You must be signed in to change notification settings - Fork 54
utils reproducer
tintin edited this page Sep 30, 2018
·
2 revisions
An example app is reproduce.py
which can reproduce an on-chain transaction as a totally local event, and run it in the evm
.
The app takes a txhash
, and
- Fetch the transaction data from an API.
- Mark (source, destination) as need-to-fetch
- Fetch balance and nonce at source, add to
genesis
- Execute transaction on the
evm
- If transaction has any externally reaching ops (BALANCE, EXTCODECOPY, CALL etc),
- Add those accounts as need-to-fetch
- Go back to 3 until the execution does not result in any more accounts to be fetched.
- Save the transaction trace and genesis