real-time fork?
hello, admin and everyone: I have a problem: 1, error is: Trying to initialize a provider with block 12138443 but the current block is 12138405 2, myCode: ## npx hardhat node --fork http://127.0.0.1:8545 --hostname 127.0.0.1 --port 8899 ## const {network} = require("hardhat"); await network.provider.request({ method: "hardhat_reset", params: [{ forking: { jsonRpcUrl: "http://127.0.0.1:8899", blockNumber: newBlockNumber } }] });//----this is error! await network.provider.send("evm_mine"); 3,myVersion: npx hardhat --version 2.6.7
4, I find source code: if (forkConfig.blockNumber > latestBlock) { // eslint-disable-next-line @nomiclabs/hardhat-internal-rules/only-hardhat-error throw new Error( Trying to initialize a provider with block ${forkConfig.blockNumber} but the current block is ${latestBlock} ); } 5, (1)So does it mean that after I fork, there is no way to continue to fork the block with higher height? (2)Excuse me, I have a way to realize: real-time fork?
thank you !!
This issue tracker is only for bug reports or feature requests. Please use our Discord server for questions like this.