Documentation ¶
Index ¶
- func CreatePoolsHolder(numShards uint32, selfShard uint32) dataRetriever.PoolsHolder
- func CreatePoolsHolderWithTxPool(txPool dataRetriever.ShardedDataCacherNotifier) dataRetriever.PoolsHolder
- func CreateTxPool(numShards uint32, selfShard uint32) (dataRetriever.ShardedDataCacherNotifier, error)
- type PoolsHolderMock
- func (holder *PoolsHolderMock) Close() error
- func (holder *PoolsHolderMock) CurrentBlockTxs() dataRetriever.TransactionCacher
- func (holder *PoolsHolderMock) Headers() dataRetriever.HeadersPool
- func (holder *PoolsHolderMock) Heartbeats() storage.Cacher
- func (holder *PoolsHolderMock) IsInterfaceNil() bool
- func (holder *PoolsHolderMock) MiniBlocks() storage.Cacher
- func (holder *PoolsHolderMock) PeerAuthentications() storage.Cacher
- func (holder *PoolsHolderMock) PeerChangesBlocks() storage.Cacher
- func (holder *PoolsHolderMock) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
- func (holder *PoolsHolderMock) SetTransactions(pool dataRetriever.ShardedDataCacherNotifier)
- func (holder *PoolsHolderMock) SetUnsignedTransactions(pool dataRetriever.ShardedDataCacherNotifier)
- func (holder *PoolsHolderMock) SmartContracts() storage.Cacher
- func (holder *PoolsHolderMock) Transactions() dataRetriever.ShardedDataCacherNotifier
- func (holder *PoolsHolderMock) TrieNodes() storage.Cacher
- func (holder *PoolsHolderMock) TrieNodesChunks() storage.Cacher
- func (holder *PoolsHolderMock) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
- type PoolsHolderStub
- func (holder *PoolsHolderStub) Close() error
- func (holder *PoolsHolderStub) CurrentBlockTxs() dataRetriever.TransactionCacher
- func (holder *PoolsHolderStub) Headers() dataRetriever.HeadersPool
- func (holder *PoolsHolderStub) Heartbeats() storage.Cacher
- func (holder *PoolsHolderStub) IsInterfaceNil() bool
- func (holder *PoolsHolderStub) MetaBlocks() storage.Cacher
- func (holder *PoolsHolderStub) MiniBlocks() storage.Cacher
- func (holder *PoolsHolderStub) PeerAuthentications() storage.Cacher
- func (holder *PoolsHolderStub) PeerChangesBlocks() storage.Cacher
- func (holder *PoolsHolderStub) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
- func (holder *PoolsHolderStub) SmartContracts() storage.Cacher
- func (holder *PoolsHolderStub) Transactions() dataRetriever.ShardedDataCacherNotifier
- func (holder *PoolsHolderStub) TrieNodes() storage.Cacher
- func (holder *PoolsHolderStub) TrieNodesChunks() storage.Cacher
- func (holder *PoolsHolderStub) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePoolsHolder ¶
func CreatePoolsHolder(numShards uint32, selfShard uint32) dataRetriever.PoolsHolder
CreatePoolsHolder -
func CreatePoolsHolderWithTxPool ¶
func CreatePoolsHolderWithTxPool(txPool dataRetriever.ShardedDataCacherNotifier) dataRetriever.PoolsHolder
CreatePoolsHolderWithTxPool -
func CreateTxPool ¶
func CreateTxPool(numShards uint32, selfShard uint32) (dataRetriever.ShardedDataCacherNotifier, error)
CreateTxPool -
Types ¶
type PoolsHolderMock ¶
type PoolsHolderMock struct {
// contains filtered or unexported fields
}
PoolsHolderMock -
func (*PoolsHolderMock) CurrentBlockTxs ¶
func (holder *PoolsHolderMock) CurrentBlockTxs() dataRetriever.TransactionCacher
CurrentBlockTxs -
func (*PoolsHolderMock) Headers ¶
func (holder *PoolsHolderMock) Headers() dataRetriever.HeadersPool
Headers -
func (*PoolsHolderMock) Heartbeats ¶
func (holder *PoolsHolderMock) Heartbeats() storage.Cacher
Heartbeats -
func (*PoolsHolderMock) IsInterfaceNil ¶
func (holder *PoolsHolderMock) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*PoolsHolderMock) MiniBlocks ¶
func (holder *PoolsHolderMock) MiniBlocks() storage.Cacher
MiniBlocks -
func (*PoolsHolderMock) PeerAuthentications ¶
func (holder *PoolsHolderMock) PeerAuthentications() storage.Cacher
PeerAuthentications -
func (*PoolsHolderMock) PeerChangesBlocks ¶
func (holder *PoolsHolderMock) PeerChangesBlocks() storage.Cacher
PeerChangesBlocks -
func (*PoolsHolderMock) RewardTransactions ¶
func (holder *PoolsHolderMock) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
RewardTransactions -
func (*PoolsHolderMock) SetTransactions ¶
func (holder *PoolsHolderMock) SetTransactions(pool dataRetriever.ShardedDataCacherNotifier)
SetTransactions -
func (*PoolsHolderMock) SetUnsignedTransactions ¶
func (holder *PoolsHolderMock) SetUnsignedTransactions(pool dataRetriever.ShardedDataCacherNotifier)
SetUnsignedTransactions -
func (*PoolsHolderMock) SmartContracts ¶
func (holder *PoolsHolderMock) SmartContracts() storage.Cacher
SmartContracts -
func (*PoolsHolderMock) Transactions ¶
func (holder *PoolsHolderMock) Transactions() dataRetriever.ShardedDataCacherNotifier
Transactions -
func (*PoolsHolderMock) TrieNodes ¶
func (holder *PoolsHolderMock) TrieNodes() storage.Cacher
TrieNodes -
func (*PoolsHolderMock) TrieNodesChunks ¶
func (holder *PoolsHolderMock) TrieNodesChunks() storage.Cacher
TrieNodesChunks -
func (*PoolsHolderMock) UnsignedTransactions ¶
func (holder *PoolsHolderMock) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
UnsignedTransactions -
type PoolsHolderStub ¶
type PoolsHolderStub struct { HeadersCalled func() dataRetriever.HeadersPool TransactionsCalled func() dataRetriever.ShardedDataCacherNotifier UnsignedTransactionsCalled func() dataRetriever.ShardedDataCacherNotifier RewardTransactionsCalled func() dataRetriever.ShardedDataCacherNotifier MiniBlocksCalled func() storage.Cacher MetaBlocksCalled func() storage.Cacher CurrBlockTxsCalled func() dataRetriever.TransactionCacher TrieNodesCalled func() storage.Cacher TrieNodesChunksCalled func() storage.Cacher PeerChangesBlocksCalled func() storage.Cacher SmartContractsCalled func() storage.Cacher PeerAuthenticationsCalled func() storage.Cacher HeartbeatsCalled func() storage.Cacher CloseCalled func() error }
PoolsHolderStub -
func (*PoolsHolderStub) CurrentBlockTxs ¶
func (holder *PoolsHolderStub) CurrentBlockTxs() dataRetriever.TransactionCacher
CurrentBlockTxs -
func (*PoolsHolderStub) Headers ¶
func (holder *PoolsHolderStub) Headers() dataRetriever.HeadersPool
Headers -
func (*PoolsHolderStub) Heartbeats ¶
func (holder *PoolsHolderStub) Heartbeats() storage.Cacher
Heartbeats -
func (*PoolsHolderStub) IsInterfaceNil ¶
func (holder *PoolsHolderStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*PoolsHolderStub) MetaBlocks ¶
func (holder *PoolsHolderStub) MetaBlocks() storage.Cacher
MetaBlocks -
func (*PoolsHolderStub) MiniBlocks ¶
func (holder *PoolsHolderStub) MiniBlocks() storage.Cacher
MiniBlocks -
func (*PoolsHolderStub) PeerAuthentications ¶
func (holder *PoolsHolderStub) PeerAuthentications() storage.Cacher
PeerAuthentications -
func (*PoolsHolderStub) PeerChangesBlocks ¶
func (holder *PoolsHolderStub) PeerChangesBlocks() storage.Cacher
PeerChangesBlocks -
func (*PoolsHolderStub) RewardTransactions ¶
func (holder *PoolsHolderStub) RewardTransactions() dataRetriever.ShardedDataCacherNotifier
RewardTransactions -
func (*PoolsHolderStub) SmartContracts ¶
func (holder *PoolsHolderStub) SmartContracts() storage.Cacher
SmartContracts -
func (*PoolsHolderStub) Transactions ¶
func (holder *PoolsHolderStub) Transactions() dataRetriever.ShardedDataCacherNotifier
Transactions -
func (*PoolsHolderStub) TrieNodes ¶
func (holder *PoolsHolderStub) TrieNodes() storage.Cacher
TrieNodes -
func (*PoolsHolderStub) TrieNodesChunks ¶
func (holder *PoolsHolderStub) TrieNodesChunks() storage.Cacher
TrieNodesChunks -
func (*PoolsHolderStub) UnsignedTransactions ¶
func (holder *PoolsHolderStub) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier
UnsignedTransactions -