Expand description
Ledger State: Acts as a caching and checkpoint layer built upon semantically meaningful database interfaces for the execution. Ledger State: Acts as a caching and checkpoint layer built upon semantically meaningful database interfaces for the execution.
Re-exports§
pub use state_object::COMMISSION_PRIVILEGE_SPECIAL_KEY;
pub use state_object::COMMISSION_PRIVILEGE_SPECIAL_KEY;
Structs§
- COMMISSION_
PRIVILEGE_ SPECIAL_ KEY - If we set this key, it means every account has commission privilege.
- State
- A caching and checkpoint layer built upon semantically meaningful database interfaces, providing interfaces and logics for managing accounts and global statistics to the execution engine.
- State
Commit Result
Functions§
- distribute_
pos_ interest - Distribute PoS interest to the PoS committee according to their reward points. Return the rewarded PoW accounts and their rewarded interest.
- initialize_
cip107 - Initialize CIP-107 for the whole system.
- initialize_
cip137 - Initialize CIP-137 for the whole system.
- initialize_
or_ update_ dao_ voted_ params - settle_
collateral_ for_ all - Charge and refund all the storage collaterals. The suicided addresses are skimmed because their collateral have been checked out. This function should only be called in post-processing of a transaction.
- update_
pos_ status