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

Transaction not found on rpc #21

Open
VasilyGerrans opened this issue Dec 17, 2022 · 5 comments
Open

Transaction not found on rpc #21

VasilyGerrans opened this issue Dec 17, 2022 · 5 comments

Comments

@VasilyGerrans
Copy link

Here is a repository illustrating a proof-of-concept contract which causes the hardhat-tracer plugin to crash: https://github.com/VasilyGerrans/hardhat-tracer-bug

I am aware that this occurs on various operating systems.

@VasilyGerrans
Copy link
Author

I've noticed this has already been mentioned here: #12

But I'll keep this here in case the linked repo might help debug the issue.

@zemse
Copy link
Owner

zemse commented Dec 20, 2022

This problem had been there for long because it used hardhat's debug_traceTransaction. It seems to be resolved in a rewrite I've been working on for a while. Please checkout the v2-beta branch.

npm i hardhat-tracer@beta

@VasilyGerrans
Copy link
Author

This problem had been there for long because it used hardhat's debug_traceTransaction. It seems to be resolved in a rewrite I've been working on for a while. Please checkout the v2-beta branch.

npm i hardhat-tracer@beta

Great! I've checked it, and it certainly fixes the issue in the example repository.

I've also checked it with hash tracing on a Hardhat fork transaction, and it comes back with errors whether I pass it a --network or a --rpc argument. Would you like me to submit a code example of that?

In general, how long do you think it might take before the tracing is stable on complex transactions on both test tracing and hash tracing?

@zemse
Copy link
Owner

zemse commented Dec 29, 2022

There's currently some issues with --network flag since it makes network calls (and does not locally execute the code). Hence --rpc should work.

I've also checked it with hash tracing on a Hardhat fork transaction, and it comes back with errors whether I pass it a --network or a --rpc argument.

What is the RPC? Is it an archive node or a locally running hardhat node? I'd like to reproduce the problem.

In general, how long do you think it might take before the tracing is stable on complex transactions on both test tracing and hash tracing?

I've tested the test, hash, and call tracing for complex transactions in many scenarios. There might be some edge cases (like the one you pointed out), aiming to get them resolved by next month.

@VasilyGerrans
Copy link
Author

VasilyGerrans commented Dec 29, 2022

@zemse The RPC is https://api.avax.network/ext/bc/C/rpc, the main RPC offered by Avalanche. I'm not sure whether it is an archive node, but it is definitely a fully-synced mainnet node. I run local Hardhat tests on a fork of this RPC, which is where I get the issue.

I've updated the hardhat-tracer-bug repo with a minimalistic example. I describe the steps to reproduce it in the README.md file.

@zemse zemse reopened this Jan 16, 2023
@zemse zemse changed the title Apparent memory leak on sufficiently long traces Transaction not found on rpc Jan 16, 2023
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