Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Bonsai makes use of additional DB segments to store flat data in addition to the state trie. These segments include:

  • ACCOUNT_INFO_STATE
    • Key = hash of account
    • Value = RLP encoded account state
  • ACCOUNT_STORAGE_STORAGE
    • Key = hash of account + hash of storage slot key
    • Value = RLP encoded storage value
  • CODE_STORAGE
    • Key = hash of code or hash or account (based on--Xbonsai-code-using-code-hash-enabled config option)
    • Value = the code

These are used to store account state, account storage, and code respectively.

In order to provide access to historic state and account storage, 2 new DB segments have been introduced:

...