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.

Oleg
  • 113
  • 6

1 Answers1

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.

Nulik
  • 4,061
  • 1
  • 18
  • 30
  • 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 08 '18 at 17:36