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.

  • 3
  • 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 Jun 8 '18 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. – Richard Horrocks Jun 8 '18 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 Oct 2 '18 at 19:00
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.

  • 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 Jun 8 '18 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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