Documentation ¶
Index ¶
- type RollbackStateInfo
- type State
- func (s *State) DeleteForkState() error
- func (s *State) GetAddressState(address []byte) (*addressstate.AddressState, error)
- func (s *State) GetAddressesState(addressesState map[string]*addressstate.AddressState) error
- func (s *State) GetBatch() *leveldb.Batch
- func (s *State) GetBlock(headerHash []byte) (*block.Block, error)
- func (s *State) GetBlockByNumber(blockNumber uint64) (*block.Block, error)
- func (s *State) GetBlockMetadata(headerHash []byte) (*metadata.BlockMetaData, error)
- func (s *State) GetBlockNumberMapping(blockNumber uint64) (*generated.BlockNumberMapping, error)
- func (s *State) GetBlockSizeLimit(b *block.Block) (int, error)
- func (s *State) GetChainHeight() (uint64, error)
- func (s *State) GetForkState() (*generated.ForkState, error)
- func (s *State) GetLastBlock() (*block.Block, error)
- func (s *State) GetMeasurement(blockTimestamp uint32, parentHeaderHash []byte, ...) (uint64, error)
- func (s *State) GetTotalCoinSupply() (uint64, error)
- func (s *State) GetTxMetadata(txHash []byte) (*generated.TransactionMetadata, error)
- func (s *State) MockAddressState(address []byte, nonce uint64, balance uint64) error
- func (s *State) PutAddressesState(addressesState map[string]*addressstate.AddressState, batch *leveldb.Batch) error
- func (s *State) PutBlock(b *block.Block, batch *leveldb.Batch) error
- func (s *State) PutBlockMetadata(headerHash []byte, b *metadata.BlockMetaData, batch *leveldb.Batch) error
- func (s *State) PutBlockNumberMapping(blockNumber uint64, blockNumberMapping *generated.BlockNumberMapping, ...) error
- func (s *State) PutChainHeight(height uint64, batch *leveldb.Batch) error
- func (s *State) PutForkState(forkState *generated.ForkState, batch *leveldb.Batch) error
- func (s *State) ReduceTotalCoinSupply(value uint64, batch *leveldb.Batch) error
- func (s *State) RemoveBlock(headerHash []byte) error
- func (s *State) RemoveBlockMetadata(headerHash []byte) error
- func (s *State) RemoveBlockNumberMapping(blockNumber uint64) error
- func (s *State) RemoveTxMetadata(tx *transactions.Transaction) error
- func (s *State) RollbackTxMetadata(block *block.Block, batch *leveldb.Batch) error
- func (s *State) UnsetOTSKey(a *addressstate.AddressState, otsKeyIndex uint64) error
- func (s *State) UpdateTxMetadata(block *block.Block, batch *leveldb.Batch) error
- func (s *State) WriteBatch(batch *leveldb.Batch)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollbackStateInfo ¶
type RollbackStateInfo struct {
// contains filtered or unexported fields
}
type State ¶
type State struct {
// contains filtered or unexported fields
}
func CreateState ¶
func (*State) DeleteForkState ¶
func (*State) GetAddressState ¶
func (s *State) GetAddressState(address []byte) (*addressstate.AddressState, error)
func (*State) GetAddressesState ¶
func (s *State) GetAddressesState(addressesState map[string]*addressstate.AddressState) error
func (*State) GetBlockByNumber ¶
func (*State) GetBlockMetadata ¶
func (s *State) GetBlockMetadata(headerHash []byte) (*metadata.BlockMetaData, error)
func (*State) GetBlockNumberMapping ¶
func (s *State) GetBlockNumberMapping(blockNumber uint64) (*generated.BlockNumberMapping, error)
func (*State) GetChainHeight ¶
func (*State) GetMeasurement ¶
func (*State) GetTotalCoinSupply ¶
func (*State) GetTxMetadata ¶
func (s *State) GetTxMetadata(txHash []byte) (*generated.TransactionMetadata, error)
func (*State) MockAddressState ¶
func (*State) PutAddressesState ¶
func (s *State) PutAddressesState(addressesState map[string]*addressstate.AddressState, batch *leveldb.Batch) error
func (*State) PutBlockMetadata ¶
func (*State) PutBlockNumberMapping ¶
func (*State) PutChainHeight ¶
func (*State) PutForkState ¶
func (*State) ReduceTotalCoinSupply ¶
func (*State) RemoveBlock ¶
func (*State) RemoveBlockMetadata ¶
func (*State) RemoveBlockNumberMapping ¶
func (*State) RemoveTxMetadata ¶
func (s *State) RemoveTxMetadata(tx *transactions.Transaction) error
func (*State) RollbackTxMetadata ¶
func (*State) UnsetOTSKey ¶
func (s *State) UnsetOTSKey(a *addressstate.AddressState, otsKeyIndex uint64) error
func (*State) UpdateTxMetadata ¶
func (*State) WriteBatch ¶
Click to show internal directories.
Click to hide internal directories.