Versions in this module Expand all Collapse all v4 v4.2.0 Apr 5, 2023 v4.1.0 Jul 13, 2022 Changes in this version + var BloomBitsIndexPrefix = []byte("iB") + func DeleteBlock(db common.Database, hash common.Hash, number uint64) + func DeleteBody(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteCanonicalHash(db common.Database, number uint64) + func DeleteHeader(global, headerTable common.Deleter, hash common.Hash, number uint64) + func DeleteReceipts(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteTd(db DatabaseDeleter, hash common.Hash, number uint64) + func DeleteTxLookupEntry(db DatabaseDeleter, hash common.Hash) + func FindCommonAncestor(db DatabaseReader, a, b *types.Header) *types.Header + func HasBody(db DatabaseReader, hash common.Hash, number uint64) bool + func HasHeader(db DatabaseReader, hash common.Hash, number uint64) bool + func Must(op string, fn func() error) + func PreimageTablePrefixer(tbl common.Table) common.Table + func ReadBlock(db common.Database, hash common.Hash, number uint64) *types.Block + func ReadBloomBits(db DatabaseReader, bit uint, section uint64, head common.Hash) []byte + func ReadBody(db DatabaseReader, hash common.Hash, number uint64) *types.Body + func ReadBodyRLP(db DatabaseReader, hash common.Hash, number uint64) rlp.RawValue + func ReadCanonicalHash(db common.Database, number uint64) common.Hash + func ReadChainConfig(db DatabaseReader, hash common.Hash) *params.ChainConfig + func ReadDatabaseVersion(db DatabaseReader) *uint64 + func ReadFastTrieProgress(db DatabaseReader) uint64 + func ReadHeadBlockHash(db DatabaseReader) common.Hash + func ReadHeadFastBlockHash(db DatabaseReader) common.Hash + func ReadHeadHeaderHash(db DatabaseReader) common.Hash + func ReadHeader(db DatabaseReader, hash common.Hash, number uint64) *types.Header + func ReadHeaderNumber(db DatabaseReader, hash common.Hash) *uint64 + func ReadHeaderRLP(db DatabaseReader, hash common.Hash, number uint64) rlp.RawValue + func ReadPreimage(db DatabaseReader, hash common.Hash) []byte + func ReadRawReceipts(db DatabaseReader, hash common.Hash, number uint64) types.Receipts + func ReadReceipt(db common.Database, hash common.Hash, config *params.ChainConfig) (*types.Receipt, common.Hash, uint64, uint64) + func ReadReceipts(db common.Database, hash common.Hash, number uint64, ...) types.Receipts + func ReadTd(db DatabaseReader, hash common.Hash, number uint64) *big.Int + func ReadTransaction(db common.Database, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64) + func ReadTxLookupEntry(db DatabaseReader, hash common.Hash) *uint64 + func WriteBlock(db common.Database, block *types.Block) + func WriteBloomBits(db DatabaseWriter, bit uint, section uint64, head common.Hash, bits []byte) + func WriteBody(db DatabaseWriter, hash common.Hash, number uint64, body *types.Body) + func WriteBodyRLP(db DatabaseWriter, hash common.Hash, number uint64, rlp rlp.RawValue) + func WriteCanonicalHash(db common.Database, hash common.Hash, number uint64) + func WriteChainConfig(db DatabaseWriter, hash common.Hash, cfg *params.ChainConfig) + func WriteDatabaseVersion(db DatabaseWriter, version uint64) + func WriteFastTrieProgress(db DatabaseWriter, count uint64) + func WriteHeadBlockHash(db DatabaseWriter, hash common.Hash) + func WriteHeadFastBlockHash(db DatabaseWriter, hash common.Hash) + func WriteHeadHeaderHash(db DatabaseWriter, hash common.Hash) + func WriteHeader(global, headerTable common.Putter, header *types.Header) + func WritePreimages(tbl common.Table, number uint64, preimages map[common.Hash][]byte) + func WriteReceipts(db DatabaseWriter, hash common.Hash, number uint64, receipts types.Receipts) + func WriteTd(db DatabaseWriter, hash common.Hash, number uint64, td *big.Int) + func WriteTxLookupEntries(db DatabaseWriter, block *types.Block) + type DatabaseDeleter interface + Delete func(key []byte) error + type DatabaseReader interface + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + type DatabaseWriter interface + Put func(key []byte, value []byte) error + type LegacyTxLookupEntry struct + BlockHash common.Hash + BlockIndex uint64 + Index uint64 Other modules containing this package github.com/gochain/gochain github.com/gochain/gochain/v3