Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sothis track mode freezes up with local node #7

Open
engn33r opened this issue Jun 27, 2023 · 3 comments
Open

[BUG] sothis track mode freezes up with local node #7

engn33r opened this issue Jun 27, 2023 · 3 comments

Comments

@engn33r
Copy link
Contributor

engn33r commented Jun 27, 2023

Describe the bug

Cannot use keyboard to interrupt sothis process. Instead, I have to manually kill the process.

Separate issues: cannot kill anvil process with keyboard interrupt, anvil blocks not increasing after the sothis track mode instance is started.

To Reproduce

Steps to reproduce the behavior:

  1. Run anvil: anvil --fork-url https://eth-mainnet.alchemyapi.io/v2/xxxx --fork-block-number 17499990 --cups 2000
  2. Run sothis historic replay instance: sothis --source_rpc https://mainnet.gateway.tenderly.co/xxxx --replay_rpc http://127.0.0.1:8545 --terminal_block 17500100
  3. Run sothis track mode instance: sothis --mode track --source_rpc http://127.0.0.1:8545 --contract_address 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640 --storage_slot 0 --filename uniswap-slot0.json --path ./
  4. Try to use keyboard interrupt on the sothis track mode instance. Does not work, must kill process manually.
  5. Try to use keyboard interrupt on the anvil process. Does not work, must kill process manually.
  6. Anvil block number not increasing anymore like it was before the sothis track mode instance was started.

I did not have this issue with track mode on a live node (current block), I have only observed the issue using a local node.

Expected behavior

Can use keyboard interrupt to kill process. Anvil block numbers should increase.

Screenshots

N/A

Setup (please complete the following information):

  • OS: Ubuntu 22.04
  • Source node: Alchemy
  • Replay node: anvil

Additional context

@makemake-kbo
Copy link
Collaborator

makemake-kbo commented Jun 27, 2023

The keyboard interrupt likely didn't work because its checked once on every new block. If no new blocks are produced, that's likely the cause for that.

I haven't been able to reproduce this issue so far. Is anvli producing any output (is it accepting transactions)? Could also be that tenderly is incompatible, but I highly doubt it as its not using any non standard RPC calls for reading state.

@makemake-kbo
Copy link
Collaborator

I added a warning to the latest pr that will show every 60 seconds if no new blocks appear, it should clear up some confusion

@engn33r
Copy link
Contributor Author

engn33r commented Jul 9, 2023

I pulled the latest sothis 0.3.2 to test this again:

  • The keyboard interrupt is working in replay mode, but not in tracking mode.
  • I see the error message every 60 seconds when no new blocks are received, so this is working
  • I still get stuck at evm_mine but it might from the RPC I am using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants