rawdb

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBlockByHash

func ReadBlockByHash(db ethdb.Database, hash types.Hash) (*types.Block, bool)

func ReadBody

func ReadBody(db ethdb.Database, hash types.Hash) ([]types.Hash, error)

func ReadCanonicalHash

func ReadCanonicalHash(db ethdb.Database, number uint64) (types.Hash, bool)

func ReadHeadHash

func ReadHeadHash(db ethdb.Database) (types.Hash, bool)

func ReadHeadNumber

func ReadHeadNumber(db ethdb.Database) (uint64, bool)

func ReadHeader

func ReadHeader(db ethdb.Database, hash types.Hash) (*types.Header, error)

func ReadReceipt

func ReadReceipt(db ethdb.Database, hash types.Hash) (*types.Receipt, error)

func ReadSnap

func ReadSnap(db ethdb.Database, number uint64) (*types.Snapshot, error)

func ReadState

func ReadState(db ethdb.Database, root types.Hash) ([]byte, error)

func ReadTD

func ReadTD(db ethdb.Database, hash types.Hash) (*big.Int, bool)

func ReadTransaction

func ReadTransaction(db ethdb.Database, hash types.Hash) (*types.Transaction, error)

func ReadTxLookUp

func ReadTxLookUp(db ethdb.Database, txhash types.Hash) (uint64, bool)

func ScanHash

func ScanHash(data []byte, atEOF bool) (advance int, token []byte, err error)

func WriteBlockByHash

func WriteBlockByHash(db ethdb.Database, hash types.Hash, block *types.Block) error

func WriteBody

func WriteBody(db ethdb.Database, hash types.Hash, txes []*types.Transaction) error

func WriteCanonicalHash

func WriteCanonicalHash(db ethdb.Database, number uint64, hash types.Hash) error

func WriteHeadHash

func WriteHeadHash(db ethdb.Database, hash types.Hash) error

func WriteHeadNumber

func WriteHeadNumber(db ethdb.Database, number uint64) error

func WriteHeader

func WriteHeader(db ethdb.Database, header *types.Header) error

func WriteSnap

func WriteSnap(db ethdb.Database, number uint64, snap *types.Snapshot) error

func WriteTD

func WriteTD(db ethdb.Database, hash types.Hash, number uint64) error

func WriteTransaction

func WriteTransaction(db ethdb.Database, tx *types.Transaction) error

func WriteTransactions

func WriteTransactions(db ethdb.Database, txes []*types.Transaction) error

func WriteTxLookUp

func WriteTxLookUp(db ethdb.Database, number uint64, txes []*types.Transaction) error

func WrteReceipt

func WrteReceipt(db ethdb.Database, receipt *types.Receipt) error

func WrteReceipts

func WrteReceipts(db ethdb.Database, receipts types.Receipts) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL