Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + type ExecuteResult struct + Hash common.Uint256 + MerkleRoot common.Uint256 + Notify []*event.ExecuteNotify + WriteSet *overlaydb.MemDB + type LedgerStore interface + AddBlock func(block *types.Block, stateMerkleRoot common.Uint256) error + AddHeaders func(headers []*types.Header) error + Close func() error + ExecuteBlock func(b *types.Block) (ExecuteResult, error) + GetBlockByHash func(blockHash common.Uint256) (*types.Block, error) + GetBlockByHeight func(height uint32) (*types.Block, error) + GetBlockHash func(height uint32) common.Uint256 + GetBlockRootWithNewTxRoots func(startHeight uint32, txRoots []common.Uint256) common.Uint256 + GetBookkeeperState func() (*states.BookkeeperState, error) + GetContractState func(contractHash common.Address) (*payload.DeployCode, error) + GetCurrentBlockHash func() common.Uint256 + GetCurrentBlockHeight func() uint32 + GetCurrentHeaderHash func() common.Uint256 + GetCurrentHeaderHeight func() uint32 + GetEventNotifyByBlock func(height uint32) ([]*event.ExecuteNotify, error) + GetEventNotifyByTx func(tx common.Uint256) (*event.ExecuteNotify, error) + GetHeaderByHash func(blockHash common.Uint256) (*types.Header, error) + GetHeaderByHeight func(height uint32) (*types.Header, error) + GetMerkleProof func(m, n uint32) ([]common.Uint256, error) + GetRawHeaderByHash func(blockHash common.Uint256) (*types.RawHeader, error) + GetStateMerkleRoot func(height uint32) (result common.Uint256, err error) + GetStorageItem func(key *states.StorageKey) (*states.StorageItem, error) + GetTransaction func(txHash common.Uint256) (*types.Transaction, uint32, error) + InitLedgerStoreWithGenesisBlock func(genesisblock *types.Block, defaultBookkeeper []keypair.PublicKey) error + IsContainBlock func(blockHash common.Uint256) (bool, error) + IsContainTransaction func(txHash common.Uint256) (bool, error) + PreExecuteContract func(tx *types.Transaction) (*cstates.PreExecResult, error) + SubmitBlock func(b *types.Block, exec ExecuteResult) error