Documentation ¶
Index ¶
- type LevelDatabase
- type LevelDatabaseReader
- func (ldbr *LevelDatabaseReader) GetBlock(hash common.Hash, number uint64) *types.Block
- func (ldbr *LevelDatabaseReader) GetBlockNumber(hash common.Hash) *uint64
- func (ldbr *LevelDatabaseReader) GetBlockReceipts(hash common.Hash, number uint64) types.Receipts
- func (ldbr *LevelDatabaseReader) GetCanonicalHash(number uint64) common.Hash
- func (ldbr *LevelDatabaseReader) GetHeadBlockHash() common.Hash
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDatabase ¶
type LevelDatabase struct {
// contains filtered or unexported fields
}
func NewLevelDatabase ¶
func NewLevelDatabase(ldbReader Reader) *LevelDatabase
func (LevelDatabase) GetBlock ¶
func (l LevelDatabase) GetBlock(blockHash []byte, blockNumber int64) *types.Block
func (LevelDatabase) GetBlockHash ¶
func (l LevelDatabase) GetBlockHash(blockNumber int64) []byte
func (LevelDatabase) GetBlockReceipts ¶
func (l LevelDatabase) GetBlockReceipts(blockHash []byte, blockNumber int64) types.Receipts
func (LevelDatabase) GetHeadBlockNumber ¶
func (l LevelDatabase) GetHeadBlockNumber() int64
type LevelDatabaseReader ¶
type LevelDatabaseReader struct {
// contains filtered or unexported fields
}
func NewLevelDatabaseReader ¶
func NewLevelDatabaseReader(reader ethdb.Reader) *LevelDatabaseReader
func (*LevelDatabaseReader) GetBlockNumber ¶
func (ldbr *LevelDatabaseReader) GetBlockNumber(hash common.Hash) *uint64
func (*LevelDatabaseReader) GetBlockReceipts ¶
func (*LevelDatabaseReader) GetCanonicalHash ¶
func (ldbr *LevelDatabaseReader) GetCanonicalHash(number uint64) common.Hash
func (*LevelDatabaseReader) GetHeadBlockHash ¶
func (ldbr *LevelDatabaseReader) GetHeadBlockHash() common.Hash
Click to show internal directories.
Click to hide internal directories.