Full not archive node would store the nearest 128 block's state in their lvldb. How could they delete old trie state in lvldb? I found they use dereference function in WriteBlockWithState function to delete it in cached triedb, but it would not affect the persistent lvldb.

  • In versions prior to 1.9.20 it didn't delete old trie state from disk instead it will keep them in memory. And will discard them from memory, so states to be discarded never reach persistent storage. – Ismael Dec 24 '18 at 14:16

Your Answer

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

Browse other questions tagged or ask your own question.