Module cfx_executor::state
source · 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§
- If we set this key, it means every account has commission privilege.
- 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.
Enums§
- Mode of dealing with null accounts.
Functions§
- Distribute PoS interest to the PoS committee according to their reward points. Return the rewarded PoW accounts and their rewarded interest.
- Initialize CIP-107 for the whole system.
- Initialize CIP-137 for the whole system.
- 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.