Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStore ¶
type BlockStore interface { PutSnapshot(block *common.SnapshotBlock) PutAccount(address common.Address, block *common.AccountStateBlock) DeleteSnapshot(hashH common.HashHeight) DeleteAccount(address common.Address, hashH common.HashHeight) SetSnapshotHead(hashH *common.HashHeight) SetAccountHead(address common.Address, hashH *common.HashHeight) GetSnapshotHead() *common.HashHeight GetAccountHead(address common.Address) *common.HashHeight GetSnapshotByHash(hash common.Hash) *common.SnapshotBlock GetSnapshotByHeight(height common.Height) *common.SnapshotBlock GetAccountByHash(address common.Address, hash common.Hash) *common.AccountStateBlock GetAccountByHeight(address common.Address, height common.Height) *common.AccountStateBlock GetAccountBySourceHash(hash common.Hash) *common.AccountStateBlock PutSourceHash(hash common.Hash, block *common.AccountHashH) DeleteSourceHash(hash common.Hash) }
func NewStore ¶
func NewStore(cfg *config.Chain) BlockStore
Click to show internal directories.
Click to hide internal directories.