Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LedgerStore ¶
type LedgerStore interface { InitLedgerStoreWithGenesisBlock(genesisblock *types.Block, defaultBookkeeper []keypair.PublicKey) error Close() error AddHeaders(headers []*types.Header) error AddBlock(block *types.Block) error GetCurrentBlockHash() common.Uint256 GetCurrentBlockHeight() uint32 GetCurrentHeaderHeight() uint32 GetCurrentHeaderHash() common.Uint256 GetBlockHash(height uint32) common.Uint256 GetHeaderByHash(blockHash common.Uint256) (*types.Header, error) GetHeaderByHeight(height uint32) (*types.Header, error) GetBlockByHash(blockHash common.Uint256) (*types.Block, error) GetBlockByHeight(height uint32) (*types.Block, error) GetTransaction(txHash common.Uint256) (*types.Transaction, uint32, error) IsContainBlock(blockHash common.Uint256) (bool, error) IsContainTransaction(txHash common.Uint256) (bool, error) GetBlockRootWithNewTxRoot(txRoot common.Uint256) common.Uint256 GetContractState(contractHash common.Address) (*payload.DeployCode, error) GetBookkeeperState() (*states.BookkeeperState, error) GetStorageItem(key *states.StorageKey) (*states.StorageItem, error) PreExecuteContract(tx *types.Transaction) ([]interface{}, error) GetEventNotifyByTx(tx common.Uint256) ([]*event.NotifyEventInfo, error) GetEventNotifyByBlock(height uint32) ([]common.Uint256, error) }
LedgerStore provides func with store package.
Click to show internal directories.
Click to hide internal directories.