Documentation ¶
Index ¶
- type Ledger
- func (this *Ledger) AddBlock(block *types.Block) error
- func (this *Ledger) AddHeaders(headers []*types.Header) error
- func (this *Ledger) GetBlockByHash(blockHash common.Uint256) (*types.Block, error)
- func (this *Ledger) GetBlockByHeight(height uint32) (*types.Block, error)
- func (this *Ledger) GetBlockHash(height uint32) common.Uint256
- func (this *Ledger) GetBlockRootWithNewTxRoot(txRoot common.Uint256) common.Uint256
- func (this *Ledger) GetBookkeeperState() (*states.BookkeeperState, error)
- func (this *Ledger) GetContractState(contractHash common.Address) (*payload.DeployCode, error)
- func (this *Ledger) GetCurrentBlockHash() common.Uint256
- func (this *Ledger) GetCurrentBlockHeight() uint32
- func (this *Ledger) GetCurrentHeaderHash() common.Uint256
- func (this *Ledger) GetCurrentHeaderHeight() uint32
- func (this *Ledger) GetCurrentStateRoot() (common.Uint256, error)
- func (this *Ledger) GetEventNotifyByBlock(height uint32) ([]common.Uint256, error)
- func (this *Ledger) GetEventNotifyByTx(tx common.Uint256) ([]*event.NotifyEventInfo, error)
- func (this *Ledger) GetHeaderByHash(blockHash common.Uint256) (*types.Header, error)
- func (this *Ledger) GetHeaderByHeight(height uint32) (*types.Header, error)
- func (this *Ledger) GetStorageItem(codeHash common.Address, key []byte) ([]byte, error)
- func (this *Ledger) GetStore() store.LedgerStore
- func (this *Ledger) GetTransaction(txHash common.Uint256) (*types.Transaction, error)
- func (this *Ledger) GetTransactionWithHeight(txHash common.Uint256) (*types.Transaction, uint32, error)
- func (this *Ledger) Init(defaultBookkeeper []keypair.PublicKey) error
- func (this *Ledger) IsContainBlock(blockHash common.Uint256) (bool, error)
- func (this *Ledger) IsContainTransaction(txHash common.Uint256) (bool, error)
- func (this *Ledger) PreExecuteContract(tx *types.Transaction) ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct {
// contains filtered or unexported fields
}
var DefLedger *Ledger
func (*Ledger) GetBlockByHash ¶
func (*Ledger) GetBlockByHeight ¶
func (*Ledger) GetBlockRootWithNewTxRoot ¶
func (*Ledger) GetBookkeeperState ¶
func (this *Ledger) GetBookkeeperState() (*states.BookkeeperState, error)
func (*Ledger) GetContractState ¶
func (*Ledger) GetCurrentBlockHash ¶
func (*Ledger) GetCurrentBlockHeight ¶
func (*Ledger) GetCurrentHeaderHash ¶
func (*Ledger) GetCurrentHeaderHeight ¶
func (*Ledger) GetCurrentStateRoot ¶
func (*Ledger) GetEventNotifyByBlock ¶
func (*Ledger) GetEventNotifyByTx ¶
func (*Ledger) GetHeaderByHash ¶
func (*Ledger) GetHeaderByHeight ¶
func (*Ledger) GetStorageItem ¶
func (*Ledger) GetStore ¶
func (this *Ledger) GetStore() store.LedgerStore
func (*Ledger) GetTransaction ¶
func (*Ledger) GetTransactionWithHeight ¶
func (*Ledger) IsContainBlock ¶
func (*Ledger) IsContainTransaction ¶
func (*Ledger) PreExecuteContract ¶
func (this *Ledger) PreExecuteContract(tx *types.Transaction) ([]interface{}, error)
Click to show internal directories.
Click to hide internal directories.