web3.js
web3.js copied to clipboard
Investigate keep calling `eth_getBlockByNumber` at @truffle/artifactor after the upgrade to v4.x
Investigate in the branch of https://github.com/trufflesuite/truffle/pull/5393
To reproduce
yarn
cd packages/artifactor
yarn test
Logs
Then the tests pass but the execution never ends. And the following keep printing in the console:
...
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
@truffle/artifactor: eth_getBlockByNumber
...
The following is unrelated, but the code is around: https://github.com/web3/web3.js/issues/6328