Documentation ¶
Index ¶
- type Accounts
- func (a *Accounts) AddJournalEntry(_ state.JournalEntry)
- func (a *Accounts) CancelPrune(_ []byte, _ data.TriePruningIdentifier)
- func (a *Accounts) Commit() ([]byte, error)
- func (a *Accounts) GetAllLeaves(_ []byte, _ context.Context) (chan core.KeyValueHolder, error)
- func (a *Accounts) GetCode(_ []byte) []byte
- func (a *Accounts) GetExistingAccount(_ []byte) (state.AccountHandler, error)
- func (a *Accounts) GetNumCheckpoints() uint32
- func (a *Accounts) IsInterfaceNil() bool
- func (a *Accounts) IsPruningEnabled() bool
- func (a *Accounts) JournalLen() int
- func (a *Accounts) LoadAccount(_ []byte) (state.AccountHandler, error)
- func (a *Accounts) PruneTrie(_ []byte, _ data.TriePruningIdentifier)
- func (a *Accounts) RecreateAllTries(_ []byte, _ context.Context) (map[string]data.Trie, error)
- func (a *Accounts) RecreateTrie(_ []byte) error
- func (a *Accounts) RemoveAccount(_ []byte) error
- func (a *Accounts) RevertToSnapshot(_ int) error
- func (a *Accounts) RootHash() ([]byte, error)
- func (a *Accounts) SaveAccount(_ state.AccountHandler) error
- func (a *Accounts) SetStateCheckpoint(_ []byte, _ context.Context)
- func (a *Accounts) SnapshotState(_ []byte, _ context.Context)
- type Blockchain
- func (b *Blockchain) CreateNewHeader() data.HeaderHandler
- func (b *Blockchain) GetCurrentBlockHeader() data.HeaderHandler
- func (b *Blockchain) GetCurrentBlockHeaderHash() []byte
- func (b *Blockchain) GetGenesisHeader() data.HeaderHandler
- func (b *Blockchain) GetGenesisHeaderHash() []byte
- func (b *Blockchain) IsInterfaceNil() bool
- func (b *Blockchain) SetCurrentBlockHeader(_ data.HeaderHandler) error
- func (b *Blockchain) SetCurrentBlockHeaderHash(_ []byte)
- func (b *Blockchain) SetGenesisHeader(_ data.HeaderHandler) error
- func (b *Blockchain) SetGenesisHeaderHash(_ []byte)
- type DataPool
- func (dp *DataPool) CurrentBlockTxs() dataRetriever.TransactionCacher
- func (dp *DataPool) Headers() dataRetriever.HeadersPool
- func (dp *DataPool) IsInterfaceNil() bool
- func (dp *DataPool) MiniBlocks() storage.Cacher
- func (dp *DataPool) PeerChangesBlocks() storage.Cacher
- func (dp *DataPool) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
- func (dp *DataPool) SmartContracts() storage.Cacher
- func (dp *DataPool) Transactions() dataRetriever.ShardedDataCacherNotifier
- func (dp *DataPool) TrieNodes() storage.Cacher
- func (dp *DataPool) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
- type ElrondShardCoordinator
- func (esc *ElrondShardCoordinator) CommunicationIdentifier(_ uint32) string
- func (esc *ElrondShardCoordinator) ComputeId(_ []byte) uint32
- func (esc *ElrondShardCoordinator) IsInterfaceNil() bool
- func (esc *ElrondShardCoordinator) NumberOfShards() uint32
- func (esc *ElrondShardCoordinator) SameShard(_, _ []byte) bool
- func (esc *ElrondShardCoordinator) SelfId() uint32
- type StorageService
- func (ss *StorageService) AddStorer(_ dataRetriever.UnitType, _ storage.Storer)
- func (ss *StorageService) CloseAll() error
- func (ss *StorageService) Destroy() error
- func (ss *StorageService) Get(_ dataRetriever.UnitType, _ []byte) ([]byte, error)
- func (ss *StorageService) GetAll(_ dataRetriever.UnitType, _ [][]byte) (map[string][]byte, error)
- func (ss *StorageService) GetStorer(_ dataRetriever.UnitType) storage.Storer
- func (ss *StorageService) Has(_ dataRetriever.UnitType, _ []byte) error
- func (ss *StorageService) IsInterfaceNil() bool
- func (ss *StorageService) Put(_ dataRetriever.UnitType, _ []byte, _ []byte) error
- func (ss *StorageService) SetEpochForPutOperation(_ uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct { }
Accounts is a disabled implementation of the AccountAdapter interface
func (*Accounts) AddJournalEntry ¶
func (a *Accounts) AddJournalEntry(_ state.JournalEntry)
AddJournalEntry does nothing
func (*Accounts) CancelPrune ¶
func (a *Accounts) CancelPrune(_ []byte, _ data.TriePruningIdentifier)
CancelPrune does nothing
func (*Accounts) GetAllLeaves ¶
GetAllLeaves returns a nil channel and nil error
func (*Accounts) GetExistingAccount ¶
func (a *Accounts) GetExistingAccount(_ []byte) (state.AccountHandler, error)
GetExistingAccount returns nil account handler and nil error
func (*Accounts) GetNumCheckpoints ¶
GetNumCheckpoints returns 0
func (*Accounts) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*Accounts) IsPruningEnabled ¶
IsPruningEnabled returns false
func (*Accounts) LoadAccount ¶
func (a *Accounts) LoadAccount(_ []byte) (state.AccountHandler, error)
LoadAccount returns a nil account and nil error
func (*Accounts) PruneTrie ¶
func (a *Accounts) PruneTrie(_ []byte, _ data.TriePruningIdentifier)
PruneTrie does nothing
func (*Accounts) RecreateAllTries ¶
RecreateAllTries return a nil map and nil error
func (*Accounts) RecreateTrie ¶
RecreateTrie returns nil
func (*Accounts) RemoveAccount ¶
RemoveAccount returns nil
func (*Accounts) RevertToSnapshot ¶
RevertToSnapshot returns nil
func (*Accounts) SaveAccount ¶
func (a *Accounts) SaveAccount(_ state.AccountHandler) error
SaveAccount returns nil
func (*Accounts) SetStateCheckpoint ¶
SetStateCheckpoint does nothing
type Blockchain ¶
type Blockchain struct { }
Blockchain is a disabled implementation of the ChainHandler interface
func (*Blockchain) CreateNewHeader ¶
func (b *Blockchain) CreateNewHeader() data.HeaderHandler
CreateNewHeader returns nil
func (*Blockchain) GetCurrentBlockHeader ¶
func (b *Blockchain) GetCurrentBlockHeader() data.HeaderHandler
GetCurrentBlockHeader returns nil
func (*Blockchain) GetCurrentBlockHeaderHash ¶
func (b *Blockchain) GetCurrentBlockHeaderHash() []byte
GetCurrentBlockHeaderHash returns nil
func (*Blockchain) GetGenesisHeader ¶
func (b *Blockchain) GetGenesisHeader() data.HeaderHandler
GetGenesisHeader returns nil
func (*Blockchain) GetGenesisHeaderHash ¶
func (b *Blockchain) GetGenesisHeaderHash() []byte
GetGenesisHeaderHash returns nil
func (*Blockchain) IsInterfaceNil ¶
func (b *Blockchain) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*Blockchain) SetCurrentBlockHeader ¶
func (b *Blockchain) SetCurrentBlockHeader(_ data.HeaderHandler) error
SetCurrentBlockHeader returns nil
func (*Blockchain) SetCurrentBlockHeaderHash ¶
func (b *Blockchain) SetCurrentBlockHeaderHash(_ []byte)
SetCurrentBlockHeaderHash does nothing
func (*Blockchain) SetGenesisHeader ¶
func (b *Blockchain) SetGenesisHeader(_ data.HeaderHandler) error
SetGenesisHeader returns nil
func (*Blockchain) SetGenesisHeaderHash ¶
func (b *Blockchain) SetGenesisHeaderHash(_ []byte)
SetGenesisHeaderHash does nothing
type DataPool ¶
type DataPool struct { }
DataPool is the disabled implementation of a PoolsHolder interface
func (*DataPool) CurrentBlockTxs ¶
func (dp *DataPool) CurrentBlockTxs() dataRetriever.TransactionCacher
CurrentBlockTxs return nil
func (*DataPool) Headers ¶
func (dp *DataPool) Headers() dataRetriever.HeadersPool
Headers returns nil
func (*DataPool) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*DataPool) MiniBlocks ¶
MiniBlocks returns nil
func (*DataPool) PeerChangesBlocks ¶
PeerChangesBlocks returns nil
func (*DataPool) RewardTransactions ¶
func (dp *DataPool) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
RewardTransactions returns nil
func (*DataPool) SmartContracts ¶
SmartContracts returns nil
func (*DataPool) Transactions ¶
func (dp *DataPool) Transactions() dataRetriever.ShardedDataCacherNotifier
Transactions returns nil
func (*DataPool) UnsignedTransactions ¶
func (dp *DataPool) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
UnsignedTransactions returns nil
type ElrondShardCoordinator ¶
type ElrondShardCoordinator struct { }
ElrondShardCoordinator is the disabled shard coordinator instance that satisfies the elrond.sharding.Coordinator interface
func (*ElrondShardCoordinator) CommunicationIdentifier ¶
func (esc *ElrondShardCoordinator) CommunicationIdentifier(_ uint32) string
CommunicationIdentifier returns empty string
func (*ElrondShardCoordinator) ComputeId ¶
func (esc *ElrondShardCoordinator) ComputeId(_ []byte) uint32
ComputeId returns 0
func (*ElrondShardCoordinator) IsInterfaceNil ¶
func (esc *ElrondShardCoordinator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*ElrondShardCoordinator) NumberOfShards ¶
func (esc *ElrondShardCoordinator) NumberOfShards() uint32
NumberOfShards returns 0
func (*ElrondShardCoordinator) SameShard ¶
func (esc *ElrondShardCoordinator) SameShard(_, _ []byte) bool
SameShard returns false
func (*ElrondShardCoordinator) SelfId ¶
func (esc *ElrondShardCoordinator) SelfId() uint32
SelfId returns 0
type StorageService ¶
type StorageService struct { }
StorageService is a disabled implementation of the StorageService interface
func (*StorageService) AddStorer ¶
func (ss *StorageService) AddStorer(_ dataRetriever.UnitType, _ storage.Storer)
AddStorer does nothing
func (*StorageService) Get ¶
func (ss *StorageService) Get(_ dataRetriever.UnitType, _ []byte) ([]byte, error)
Get returns nil byte slice and nil error
func (*StorageService) GetAll ¶
func (ss *StorageService) GetAll(_ dataRetriever.UnitType, _ [][]byte) (map[string][]byte, error)
GetAll returns nil map and nil error
func (*StorageService) GetStorer ¶
func (ss *StorageService) GetStorer(_ dataRetriever.UnitType) storage.Storer
GetStorer returns nil
func (*StorageService) Has ¶
func (ss *StorageService) Has(_ dataRetriever.UnitType, _ []byte) error
Has returns nil
func (*StorageService) IsInterfaceNil ¶
func (ss *StorageService) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*StorageService) Put ¶
func (ss *StorageService) Put(_ dataRetriever.UnitType, _ []byte, _ []byte) error
Put returns nil
func (*StorageService) SetEpochForPutOperation ¶
func (ss *StorageService) SetEpochForPutOperation(_ uint32)
SetEpochForPutOperation does nothing