hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Infamous `PollingBlockTracker` error

Open pathornteng opened this issue 1 year ago • 1 comments

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

  1. clone https://github.com/hashgraph/hedera-fxprocessor-demo/tree/main
  2. go to web folder and configure .env as 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
  1. run truffle migrate

Additional context

No response

Hedera network

mainnet, testnet, previewnet

Version

latest

Operating system

None

pathornteng avatar Nov 30 '23 17:11 pathornteng

@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

Nana-EC avatar Apr 17 '24 02:04 Nana-EC