Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataEntryPrefix ¶
type DataEntryPrefix byte
DataEntryPrefix
const ( // DATA DATA_BLOCK DataEntryPrefix = 0x00 DATA_HEADER = 0x01 DATA_TRANSACTION = 0x02 // Transaction ST_BOOKKEEPER DataEntryPrefix = 0x03 ST_CONTRACT DataEntryPrefix = 0x04 ST_STORAGE DataEntryPrefix = 0x05 ST_VALIDATOR DataEntryPrefix = 0x07 ST_VOTE DataEntryPrefix = 0x08 IX_HEADER_HASH_LIST DataEntryPrefix = 0x09 //SYSTEM SYS_CURRENT_BLOCK DataEntryPrefix = 0x10 SYS_VERSION DataEntryPrefix = 0x11 SYS_CURRENT_STATE_ROOT DataEntryPrefix = 0x12 SYS_BLOCK_MERKLE_TREE DataEntryPrefix = 0x13 EVENT_NOTIFY DataEntryPrefix = 0x14 )
type EventStore ¶
type MemoryCacheStore ¶
type PersistStore ¶
type StateItem ¶
type StateItem struct { Key string Value states.StateValue State ItemState Trie bool }
type StateStore ¶
type StateStore interface { TryAdd(prefix DataEntryPrefix, key []byte, value states.StateValue, trie bool) TryGetOrAdd(prefix DataEntryPrefix, key []byte, value states.StateValue, trie bool) error TryGet(prefix DataEntryPrefix, key []byte) (*StateItem, error) TryGetAndChange(prefix DataEntryPrefix, key []byte, trie bool) (states.StateValue, error) TryDelete(prefix DataEntryPrefix, key []byte) Find(prefix DataEntryPrefix, key []byte) ([]*StateItem, error) }
Click to show internal directories.
Click to hide internal directories.