Documentation ¶
Index ¶
- type BlockPersistence
- func (f *BlockPersistence) GetBlock(height primitives.BlockHeight) (*protocol.BlockPairContainer, error)
- func (f *BlockPersistence) GetBlockByTx(txHash primitives.Sha256, minBlockTs primitives.TimestampNano, ...) (block *protocol.BlockPairContainer, txIndexInBlock int, err error)
- func (f *BlockPersistence) GetBlockTracker() *synchronization.BlockTracker
- func (f *BlockPersistence) GetLastBlock() (*protocol.BlockPairContainer, error)
- func (f *BlockPersistence) GetLastBlockHeight() (primitives.BlockHeight, error)
- func (f *BlockPersistence) GetResultsBlock(height primitives.BlockHeight) (*protocol.ResultsBlockContainer, error)
- func (f *BlockPersistence) GetSyncState() internodesync.SyncState
- func (f *BlockPersistence) GetTransactionsBlock(height primitives.BlockHeight) (*protocol.TransactionsBlockContainer, error)
- func (f *BlockPersistence) GracefulShutdown(shutdownContext context.Context)
- func (f *BlockPersistence) ScanBlocks(from primitives.BlockHeight, pageSize uint8, cursor adapter.CursorFunc) error
- func (f *BlockPersistence) WriteNextBlock(blockPair *protocol.BlockPairContainer) (bool, primitives.BlockHeight, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockPersistence ¶ added in v1.2.1
type BlockPersistence struct {
// contains filtered or unexported fields
}
func NewBlockPersistence ¶
func NewBlockPersistence(conf config.FilesystemBlockPersistenceConfig, parent log.Logger, metricFactory metric.Factory) (*BlockPersistence, error)
func (*BlockPersistence) GetBlock ¶ added in v1.3.15
func (f *BlockPersistence) GetBlock(height primitives.BlockHeight) (*protocol.BlockPairContainer, error)
func (*BlockPersistence) GetBlockByTx ¶ added in v1.2.1
func (f *BlockPersistence) GetBlockByTx(txHash primitives.Sha256, minBlockTs primitives.TimestampNano, maxBlockTs primitives.TimestampNano) (block *protocol.BlockPairContainer, txIndexInBlock int, err error)
func (*BlockPersistence) GetBlockTracker ¶ added in v1.2.1
func (f *BlockPersistence) GetBlockTracker() *synchronization.BlockTracker
func (*BlockPersistence) GetLastBlock ¶ added in v1.2.1
func (f *BlockPersistence) GetLastBlock() (*protocol.BlockPairContainer, error)
func (*BlockPersistence) GetLastBlockHeight ¶ added in v1.2.1
func (f *BlockPersistence) GetLastBlockHeight() (primitives.BlockHeight, error)
func (*BlockPersistence) GetResultsBlock ¶ added in v1.2.1
func (f *BlockPersistence) GetResultsBlock(height primitives.BlockHeight) (*protocol.ResultsBlockContainer, error)
func (*BlockPersistence) GetSyncState ¶ added in v1.3.15
func (f *BlockPersistence) GetSyncState() internodesync.SyncState
func (*BlockPersistence) GetTransactionsBlock ¶ added in v1.2.1
func (f *BlockPersistence) GetTransactionsBlock(height primitives.BlockHeight) (*protocol.TransactionsBlockContainer, error)
func (*BlockPersistence) GracefulShutdown ¶ added in v1.2.1
func (f *BlockPersistence) GracefulShutdown(shutdownContext context.Context)
func (*BlockPersistence) ScanBlocks ¶ added in v1.2.1
func (f *BlockPersistence) ScanBlocks(from primitives.BlockHeight, pageSize uint8, cursor adapter.CursorFunc) error
func (*BlockPersistence) WriteNextBlock ¶ added in v1.2.1
func (f *BlockPersistence) WriteNextBlock(blockPair *protocol.BlockPairContainer) (bool, primitives.BlockHeight, error)
Click to show internal directories.
Click to hide internal directories.