-
Notifications
You must be signed in to change notification settings - Fork 987
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
Problems getting blocks from Ganache #375
Comments
We've received another report for Ganache:
being logged a lot. I'm fairly certain this particular error is specific to Ganache. When polling for the latest block in the Block Ingestor, Ganache must be returning something that we are not prepared for. |
Identified one type of error: Key not found in databaseError message
CauseThe same network name (e.g. Why is the error thrown?Doing this results in the Graph Node having an invalid latest block for this network. It will then get an error from Ethereum when calling |
Identified another type of error: Invalid length 1, expected a 0x-prefixed hex string with length 40Error message
CauseContract creation transactions have no How to reproduce?Set up Ganache with a migration that creates a contract or two. Make an
The last line above has the incorrect The Ethereum JSON-RPC API spec states that |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There are two possible routes here:
|
Given that Ganache is the side not conforming to the spec, I suppose the right thing to do would be to patch them. |
I filed issue trufflesuite/ganache#907 in the ganache project repo about getting |
trufflesuite/ganache#907 is closed and fixed! 🎉 |
@nenadjaja to revisit if Ganache works now (may need to install it from master if the fix is not in the latest release yet). |
Update - Ganache issue is fixed, but the fix is not in the latest release. To get it running locally, follow the steps:
Now ganache is running with the fix for this issue, and you can run |
@nenadjaja Is it nessesry to clone both repos, since you alreay |
Hi @tsuberim sorry for not responding earlier, I didn't see your comment. Yeah good point, you don't need to clone both repos, just |
Tested with the following:
This issue is fixed and can't be reproduced anymore. |
I tried the following and all of these fail because it can't get the block from the blockchain:
--ethereum-rpc
andganache-cli
--ethereum-ipc
andgeth --testnet
--ethereum-rpc
andganache-cli
--ethereum-ipc
andgeth --testnet
I am getting one of these 2 error msgs pretty much immediately after I run
cargo
:https://github.com/graphprotocol/graph-node/blob/master/datasource/ethereum/src/block_ingestor.rs#L162-L166
Versions:
Ganache CLI v6.1.8 (ganache-core: 2.2.1)
Geth Version: 1.8.14-stable
The text was updated successfully, but these errors were encountered: