hedera-json-rpc-relay
hedera-json-rpc-relay copied to clipboard
Infamous `PollingBlockTracker` error
Description
Hi team, I am getting the following error when trying to deploy a medium - large smart contracts. Even though Truffle returned error, the transaction was actually successful. I can reliably reproduce the problem from deploying a smart contact in this repo. https://github.com/hashgraph/hedera-fxprocessor-demo/tree/main
/Users/pathorn/Work/hedera/hedera-fxprocessor-demo/web/node_modules/eth-block-tracker/src/polling.js:51
const newErr = new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${err.stack}`)
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
undefined
at PollingBlockTracker._performSync (/Users/pathorn/Work/hedera/hedera-fxprocessor-demo/web/node_modules/eth-block-tracker/src/polling.js:51:24)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Steps to reproduce
- clone https://github.com/hashgraph/hedera-fxprocessor-demo/tree/main
- go to
webfolder and configure.envas follow
ETH_PRIVATE_KEY=<your ECDSA key in Hex format>
NETWORK_ID=296
REACT_APP_JSON_RPC_RELAY_URL=https://testnet.hashio.io/api
REACT_APP_NETWORK=testnet
- run
truffle migrate
Additional context
No response
Hedera network
mainnet, testnet, previewnet
Version
latest
Operating system
None
@pathornteng is this still the case? With large contracts there's limited options but we'll keep exploring how to avoid the latency that causes the confusion