[DOCS] add text about eth.syncing status check in mining tutorial (#23600)

This commit is contained in:
Thad Guidry 2021-09-21 04:04:40 -05:00 committed by GitHub
parent 49ee091152
commit d5551de5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -47,6 +47,29 @@ Now start geth and wait for it to sync the blockchain. This will take quite a wh
geth --http --miner.etherbase 0xC95767AC46EA2A9162F0734651d6cF17e5BfcF10
To monitor the syncing, in another terminal you can `attach` the geth JavaScript console to the running node like so:
geth attach https://127.0.0.1:8545
and then at the > prompt type
eth.syncing
You'll see something like the example output below -- it's a two stage process as described in much more detail in our [FAQ](../FAQ).
In the first stage, the difference between the "currentBlock" and the "highestBlock" will decrease until they are almost equal. It will then look stuck and appear as never becoming equal. But you should see "pulledStates" rising to equal "knownStates." When both are equal, you are synced.
Example output of first stage of block downloading:
{
currentBlock: 10707814,
highestBlock: 13252182,
knownStates: 0,
pulledStates: 0,
startingBlock: 3809258
}
A response from `eth.syncing` of `false` means you are synced up.
Now we're ready to start mining. In a new terminal session, run ethminer and connect it to geth:
OpenCL