Versions in this module Expand all Collapse all v0 v0.0.2 Dec 21, 2022 v0.0.1 Dec 21, 2022 Changes in this version + func ReadBlockByHash(db ethdb.Database, hash types.Hash) (*types.Block, bool) + func ReadBody(db ethdb.Database, hash types.Hash) ([]types.Hash, error) + func ReadCanonicalHash(db ethdb.Database, number uint64) (types.Hash, bool) + func ReadHeadHash(db ethdb.Database) (types.Hash, bool) + func ReadHeadNumber(db ethdb.Database) (uint64, bool) + func ReadHeader(db ethdb.Database, hash types.Hash) (*types.Header, error) + func ReadReceipt(db ethdb.Database, hash types.Hash) (*types.Receipt, error) + func ReadSnap(db ethdb.Database, number uint64) (*types.Snapshot, error) + func ReadState(db ethdb.Database, root types.Hash) ([]byte, error) + func ReadTD(db ethdb.Database, hash types.Hash) (*big.Int, bool) + func ReadTransaction(db ethdb.Database, hash types.Hash) (*types.Transaction, error) + func ReadTxLookUp(db ethdb.Database, txhash types.Hash) (uint64, bool) + func ScanHash(data []byte, atEOF bool) (advance int, token []byte, err error) + func WriteBlockByHash(db ethdb.Database, hash types.Hash, block *types.Block) error + func WriteBody(db ethdb.Database, hash types.Hash, txes []*types.Transaction) error + func WriteCanonicalHash(db ethdb.Database, number uint64, hash types.Hash) error + func WriteHeadHash(db ethdb.Database, hash types.Hash) error + func WriteHeadNumber(db ethdb.Database, number uint64) error + func WriteHeader(db ethdb.Database, header *types.Header) error + func WriteSnap(db ethdb.Database, number uint64, snap *types.Snapshot) error + func WriteTD(db ethdb.Database, hash types.Hash, number uint64) error + func WriteTransaction(db ethdb.Database, tx *types.Transaction) error + func WriteTransactions(db ethdb.Database, txes []*types.Transaction) error + func WriteTxLookUp(db ethdb.Database, number uint64, txes []*types.Transaction) error + func WrteReceipt(db ethdb.Database, receipt *types.Receipt) error + func WrteReceipts(db ethdb.Database, receipts types.Receipts) error