1

How can I get know using geth console was my database synced in fast or full mode ?

UPD Its not the same as checking a process ps ux | grep geth. I know that i have started geth without sync parameter - i just to get know what a difference from client side on this state.

4
  • 3
    Possible duplicate of How do I tell whether the Mist/Wallet is "fast" or "full" syncing? Commented Jun 8, 2018 at 13:56
  • UPD Its not the same as checking a process ps ux | grep geth. I know that i have started geth without sync parameter - i just to get know what a difference from client side on this state.
    – Oleg
    Commented Jun 8, 2018 at 14:56
  • 1
    If you have started Geth without the --syncmode parameter, then by default you are using --syncmode=fast, so you're doing a fast sync, not a full sync. Commented Jun 8, 2018 at 15:07
  • on Richard's comment, once your "fast" sync node catches up to the current block, it effectively switches to "full" sync. Also both "fast" and "full" syncs create "full nodes", but not "full archival nodes". For the latter you'll need to add --gcmode=archive and have 1.5TB+ of storage as of today
    – xref
    Commented Oct 2, 2018 at 19:00

1 Answer 1

2

do a :

  eth.getBalance('someaccount',some_block_number_very_back_into_the_past_like_block_1000000_or_so)` 

if you get an error about the state entry, then you are in fast sync mode. To have a full node, you will need about 1 TB disk size, and your database will be storing every state change from block 0, so getting a balance of an account back into the past will not produce an error.

1
  • With new version of geth fast and full modes are more similar, both will drop 'old' states. Only a node run --gcmode=archive it will store all states, so it is possible for a node started as full to not return a balance for old blocks.
    – Ismael
    Commented Jun 8, 2018 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.