Versions in this module Expand all Collapse all v0 v0.13.8 Nov 15, 2024 Changes in this version + const HashScheme + const PathScheme + var BloomBitsIndexPrefix = []byte("iB") + var CodePrefix = []byte("c") + var CodeToFetchPrefix = []byte("CP") + var PreimagePrefix = []byte("secure-key-") + var SnapshotAccountPrefix = []byte("a") + var SnapshotStoragePrefix = []byte("o") + func AddCodeToFetch(db ethdb.KeyValueWriter, hash common.Hash) + func ClearAllSyncSegments(db ethdb.KeyValueStore) error + func ClearAllSyncStorageTries(db ethdb.KeyValueStore) error + func ClearPrefix(db ethdb.KeyValueStore, prefix []byte, keyLen int) error + func ClearSyncSegments(db ethdb.KeyValueStore, root common.Hash) error + func ClearSyncStorageTrie(db ethdb.KeyValueStore, root common.Hash) error + func DeleteAccountSnapshot(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteAccountTrieNode(db ethdb.KeyValueWriter, path []byte) + func DeleteBlock(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteBlockWithoutNumber(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteBloombits(db ethdb.Database, bit uint, from uint64, to uint64) + func DeleteBody(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteCanonicalHash(db ethdb.KeyValueWriter, number uint64) + func DeleteCode(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteCodeToFetch(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteHeader(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteHeaderNumber(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteLegacyTrieNode(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteOfflinePruning(db ethdb.KeyValueStore) error + func DeletePopulateMissingTries(db ethdb.KeyValueStore) error + func DeletePruningDisabled(db ethdb.KeyValueStore) error + func DeleteReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteSnapshotBlockHash(db ethdb.KeyValueWriter) + func DeleteSnapshotRoot(db ethdb.KeyValueWriter) + func DeleteStateID(db ethdb.KeyValueWriter, root common.Hash) + func DeleteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash) + func DeleteStorageTrieNode(db ethdb.KeyValueWriter, accountHash common.Hash, path []byte) + func DeleteTimeMarker(db ethdb.KeyValueStore, key []byte) error + func DeleteTrieJournal(db ethdb.KeyValueWriter) + func DeleteTrieNode(db ethdb.KeyValueWriter, owner common.Hash, path []byte, hash common.Hash, ...) + func DeleteTxLookupEntries(db ethdb.KeyValueWriter, hashes []common.Hash) + func DeleteTxLookupEntry(db ethdb.KeyValueWriter, hash common.Hash) + func ExistsAccountTrieNode(db ethdb.KeyValueReader, path []byte) bool + func ExistsStorageTrieNode(db ethdb.KeyValueReader, accountHash common.Hash, path []byte) bool + func FindCommonAncestor(db ethdb.Reader, a, b *types.Header) *types.Header + func GetLatestSyncPerformed(db ethdb.Iteratee) uint64 + func HasAccountTrieNode(db ethdb.KeyValueReader, path []byte, hash common.Hash) bool + func HasBody(db ethdb.Reader, hash common.Hash, number uint64) bool + func HasCode(db ethdb.KeyValueReader, hash common.Hash) bool + func HasHeader(db ethdb.Reader, hash common.Hash, number uint64) bool + func HasLegacyTrieNode(db ethdb.KeyValueReader, hash common.Hash) bool + func HasPruningDisabled(db ethdb.KeyValueStore) (bool, error) + func HasReceipts(db ethdb.Reader, hash common.Hash, number uint64) bool + func HasStorageTrieNode(db ethdb.KeyValueReader, accountHash common.Hash, path []byte, ...) bool + func HasTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash common.Hash, ...) bool + func IndexTransactions(db ethdb.Database, from uint64, to uint64, interrupt chan struct{}, ...) + func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error + func IsAccountTrieNode(key []byte) bool + func IsCodeKey(key []byte) (bool, []byte) + func IsLegacyTrieNode(key []byte, val []byte) bool + func IsStorageTrieNode(key []byte) bool + func IterateAccountSnapshots(db ethdb.Iteratee) ethdb.Iterator + func IterateStorageSnapshots(db ethdb.Iteratee, accountHash common.Hash) ethdb.Iterator + func NewCodeToFetchIterator(db ethdb.Iteratee) ethdb.Iterator + func NewDatabase(db ethdb.KeyValueStore) ethdb.Database + func NewKeyLengthIterator(it ethdb.Iterator, keyLen int) ethdb.Iterator + func NewLevelDBDatabase(file string, cache int, handles int, namespace string, readonly bool) (ethdb.Database, error) + func NewMemoryDatabase() ethdb.Database + func NewMemoryDatabaseWithCap(size int) ethdb.Database + func NewPebbleDBDatabase(file string, cache int, handles int, namespace string, ...) (ethdb.Database, error) + func NewSyncPerformedIterator(db ethdb.Iteratee) ethdb.Iterator + func NewSyncSegmentsIterator(db ethdb.Iteratee, root common.Hash) ethdb.Iterator + func NewSyncStorageTriesIterator(db ethdb.Iteratee, seek []byte) ethdb.Iterator + func NewTable(db ethdb.Database, prefix string) ethdb.Database + func Open(o OpenOptions) (ethdb.Database, error) + func ParseStateScheme(provided string, disk ethdb.Database) (string, error) + func PopUncleanShutdownMarker(db ethdb.KeyValueStore) + func PreexistingDatabase(path string) string + func PushUncleanShutdownMarker(db ethdb.KeyValueStore) ([]uint64, uint64, error) + func ReadAcceptorTip(db ethdb.KeyValueReader) (common.Hash, error) + func ReadAccountSnapshot(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadAccountTrieNode(db ethdb.KeyValueReader, path []byte) ([]byte, common.Hash) + func ReadAllCanonicalHashes(db ethdb.Iteratee, from uint64, to uint64, limit int) ([]uint64, []common.Hash) + func ReadAllHashes(db ethdb.Iteratee, number uint64) []common.Hash + func ReadBlock(db ethdb.Reader, hash common.Hash, number uint64) *types.Block + func ReadBloomBits(db ethdb.KeyValueReader, bit uint, section uint64, head common.Hash) ([]byte, error) + func ReadBody(db ethdb.Reader, hash common.Hash, number uint64) *types.Body + func ReadBodyRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadCanonicalBodyRLP(db ethdb.Reader, number uint64) rlp.RawValue + func ReadCanonicalHash(db ethdb.Reader, number uint64) common.Hash + func ReadChainConfig(db ethdb.KeyValueReader, hash common.Hash) *params.ChainConfig + func ReadCode(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadDatabaseVersion(db ethdb.KeyValueReader) *uint64 + func ReadHeadBlock(db ethdb.Reader) *types.Block + func ReadHeadBlockHash(db ethdb.KeyValueReader) common.Hash + func ReadHeadHeaderHash(db ethdb.KeyValueReader) common.Hash + func ReadHeader(db ethdb.Reader, hash common.Hash, number uint64) *types.Header + func ReadHeaderNumber(db ethdb.KeyValueReader, hash common.Hash) *uint64 + func ReadHeaderRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadLegacyTrieNode(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadLogs(db ethdb.Reader, hash common.Hash, number uint64) [][]*types.Log + func ReadOfflinePruning(db ethdb.KeyValueStore) (time.Time, error) + func ReadPersistentStateID(db ethdb.KeyValueReader) uint64 + func ReadPopulateMissingTries(db ethdb.KeyValueStore) (time.Time, error) + func ReadPreimage(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadRawReceipts(db ethdb.Reader, hash common.Hash, number uint64) types.Receipts + func ReadReceipt(db ethdb.Reader, hash common.Hash, config *params.ChainConfig) (*types.Receipt, common.Hash, uint64, uint64) + func ReadReceipts(db ethdb.Reader, hash common.Hash, number uint64, time uint64, ...) types.Receipts + func ReadReceiptsRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadSnapshotBlockHash(db ethdb.KeyValueReader) common.Hash + func ReadSnapshotGenerator(db ethdb.KeyValueReader) []byte + func ReadSnapshotRoot(db ethdb.KeyValueReader) common.Hash + func ReadStateID(db ethdb.KeyValueReader, root common.Hash) *uint64 + func ReadStateScheme(db ethdb.Reader) string + func ReadStorageSnapshot(db ethdb.KeyValueReader, accountHash, storageHash common.Hash) []byte + func ReadStorageTrieNode(db ethdb.KeyValueReader, accountHash common.Hash, path []byte) ([]byte, common.Hash) + func ReadSyncRoot(db ethdb.KeyValueReader) (common.Hash, error) + func ReadTimeMarker(db ethdb.KeyValueStore, key []byte) (time.Time, error) + func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64) + func ReadTrieJournal(db ethdb.KeyValueReader) []byte + func ReadTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash common.Hash, ...) []byte + func ReadTxIndexTail(db ethdb.KeyValueReader) *uint64 + func ReadTxLookupEntry(db ethdb.Reader, hash common.Hash) *uint64 + func ResolveAccountTrieNodeKey(key []byte) (bool, []byte) + func ResolveStorageTrieNode(key []byte) (bool, common.Hash, []byte) + func UnindexTransactions(db ethdb.Database, from uint64, to uint64, interrupt chan struct{}, ...) + func UnpackSyncPerformedKey(key []byte) uint64 + func UnpackSyncSegmentKey(keyBytes []byte) (common.Hash, []byte) + func UnpackSyncStorageTrieKey(keyBytes []byte) (common.Hash, common.Hash) + func UpdateUncleanShutdownMarker(db ethdb.KeyValueStore) + func WriteAcceptorTip(db ethdb.KeyValueWriter, hash common.Hash) error + func WriteAccountSnapshot(db ethdb.KeyValueWriter, hash common.Hash, entry []byte) + func WriteAccountTrieNode(db ethdb.KeyValueWriter, path []byte, node []byte) + func WriteBlock(db ethdb.KeyValueWriter, block *types.Block) + func WriteBloomBits(db ethdb.KeyValueWriter, bit uint, section uint64, head common.Hash, ...) + func WriteBody(db ethdb.KeyValueWriter, hash common.Hash, number uint64, body *types.Body) + func WriteBodyRLP(db ethdb.KeyValueWriter, hash common.Hash, number uint64, rlp rlp.RawValue) + func WriteCanonicalHash(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func WriteChainConfig(db ethdb.KeyValueWriter, hash common.Hash, cfg *params.ChainConfig) + func WriteCode(db ethdb.KeyValueWriter, hash common.Hash, code []byte) + func WriteDatabaseVersion(db ethdb.KeyValueWriter, version uint64) + func WriteHeadBlockHash(db ethdb.KeyValueWriter, hash common.Hash) + func WriteHeadHeaderHash(db ethdb.KeyValueWriter, hash common.Hash) + func WriteHeader(db ethdb.KeyValueWriter, header *types.Header) + func WriteHeaderNumber(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func WriteLegacyTrieNode(db ethdb.KeyValueWriter, hash common.Hash, node []byte) + func WriteOfflinePruning(db ethdb.KeyValueStore) error + func WritePersistentStateID(db ethdb.KeyValueWriter, number uint64) + func WritePopulateMissingTries(db ethdb.KeyValueStore) error + func WritePreimages(db ethdb.KeyValueWriter, preimages map[common.Hash][]byte) + func WritePruningDisabled(db ethdb.KeyValueStore) error + func WriteReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64, ...) + func WriteSnapshotBlockHash(db ethdb.KeyValueWriter, blockHash common.Hash) + func WriteSnapshotGenerator(db ethdb.KeyValueWriter, generator []byte) + func WriteSnapshotRoot(db ethdb.KeyValueWriter, root common.Hash) + func WriteStateID(db ethdb.KeyValueWriter, root common.Hash, id uint64) + func WriteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash, entry []byte) + func WriteStorageTrieNode(db ethdb.KeyValueWriter, accountHash common.Hash, path []byte, node []byte) + func WriteSyncPerformed(db ethdb.KeyValueWriter, blockNumber uint64) error + func WriteSyncRoot(db ethdb.KeyValueWriter, root common.Hash) error + func WriteSyncSegment(db ethdb.KeyValueWriter, root common.Hash, start []byte) error + func WriteSyncStorageTrie(db ethdb.KeyValueWriter, root common.Hash, account common.Hash) error + func WriteTimeMarker(db ethdb.KeyValueStore, key []byte) error + func WriteTrieJournal(db ethdb.KeyValueWriter, journal []byte) + func WriteTrieNode(db ethdb.KeyValueWriter, owner common.Hash, path []byte, hash common.Hash, ...) + func WriteTxIndexTail(db ethdb.KeyValueWriter, number uint64) + func WriteTxLookupEntries(db ethdb.KeyValueWriter, number uint64, hashes []common.Hash) + func WriteTxLookupEntriesByBlock(db ethdb.KeyValueWriter, block *types.Block) + type KeyLengthIterator struct + func (it *KeyLengthIterator) Next() bool + type LegacyTxLookupEntry struct + BlockHash common.Hash + BlockIndex uint64 + Index uint64 + type NumberHash struct + Hash common.Hash + Number uint64 + func ReadAllHashesInRange(db ethdb.Iteratee, first, last uint64) []*NumberHash + type OpenOptions struct + Cache int + Directory string + Ephemeral bool + Handles int + Namespace string + ReadOnly bool + Type string