forked from sbelalex/catapult-server
-
Notifications
You must be signed in to change notification settings - Fork 0
state
Marcos Mayorga edited this page Feb 12, 2021
·
4 revisions
state
Information supporting the tokenomics model
catapult can be doted the following compilation options:
--state-disk (slower, requires less RAM memory, persistent)
--state-ram (faster, required more RAM memory, non-persistent)
non-persistent state include an eventual perforance penalty, which happens during the process initialization, where the absence of persistent data produces the need for reconstructing the state from the evidence source (blocks).
There exist two representations of the state vector.
- blockchain. The state vector can be encoded in for of a singly linked list of evidences/transactions or state deltas.
- ram In-memory C++ Object.
The class specifying the state of an Account is defined in src/catapult/state/AccountState.h