Versions in this module Expand all Collapse all v1 v1.0.2 Jan 15, 2024 v1.0.1 Jan 15, 2024 Changes in this version + var BloomBitsIndexPrefix = []byte("iB") + var CodePrefix = []byte("c") + var FreezerNoSnappy = map[string]bool + var PreimagePrefix = []byte("secure-key-") + var SnapshotAccountPrefix = []byte("a") + var SnapshotRootKey = []byte("SnapshotRoot") + var SnapshotStoragePrefix = []byte("o") + func DeleteAccountSnapshot(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteBadBlocks(db ethdb.KeyValueWriter) + func DeleteBatchChunkRanges(db ethdb.KeyValueWriter, batchIndex uint64) + 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 DeleteHeader(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteHeaderNumber(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteSnapshotDisabled(db ethdb.KeyValueWriter) + func DeleteSnapshotGenerator(db ethdb.KeyValueWriter) + func DeleteSnapshotJournal(db ethdb.KeyValueWriter) + func DeleteSnapshotRecoveryNumber(db ethdb.KeyValueWriter) + func DeleteSnapshotRoot(db ethdb.KeyValueWriter) + func DeleteSnapshotSyncStatus(db ethdb.KeyValueWriter) + func DeleteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash) + func DeleteTd(db ethdb.KeyValueWriter, hash common.Hash, number uint64) + func DeleteTrieNode(db ethdb.KeyValueWriter, hash common.Hash) + func DeleteTxLookupEntries(db ethdb.KeyValueWriter, hashes []common.Hash) + func DeleteTxLookupEntry(db ethdb.KeyValueWriter, hash common.Hash) + func FindCommonAncestor(db ethdb.Reader, a, b *types.Header) *types.Header + func FirstQueueIndexNotInL2BlockKey(l2BlockHash common.Hash) []byte + func HasBody(db ethdb.Reader, hash common.Hash, number uint64) bool + func HasHeader(db ethdb.Reader, hash common.Hash, number uint64) bool + func HasReceipts(db ethdb.Reader, hash common.Hash, number uint64) bool + func IndexTransactions(db ethdb.Database, from uint64, to uint64, interrupt chan struct{}) + func InitDatabaseFromFreezer(db ethdb.Database) + func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error + func IsCodeKey(key []byte) (bool, []byte) + func IterateStorageSnapshots(db ethdb.Iteratee, accountHash common.Hash) ethdb.Iterator + func L1MessageKey(queueIndex uint64) []byte + func NewDatabase(db ethdb.KeyValueStore) ethdb.Database + func NewDatabaseWithFreezer(db ethdb.KeyValueStore, freezer string, namespace string, readonly bool) (ethdb.Database, error) + func NewFreezerTable(path, name string, disableSnappy bool) (*freezerTable, error) + func NewLevelDBDatabase(file string, cache int, handles int, namespace string, readonly bool) (ethdb.Database, error) + func NewLevelDBDatabaseWithFreezer(file string, cache int, handles int, freezer string, namespace string, ...) (ethdb.Database, error) + func NewMemoryDatabase() ethdb.Database + func NewMemoryDatabaseWithCap(size int) ethdb.Database + func NewTable(db ethdb.Database, prefix string) ethdb.Database + func PopUncleanShutdownMarker(db ethdb.KeyValueStore) + func PushUncleanShutdownMarker(db ethdb.KeyValueStore) ([]uint64, uint64, error) + func ReadAccountSnapshot(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadAllBadBlocks(db ethdb.Reader) []*types.Block + func ReadAllCanonicalHashes(db ethdb.Iteratee, from uint64, to uint64, limit int) ([]uint64, []common.Hash) + func ReadAllHashes(db ethdb.Iteratee, number uint64) []common.Hash + func ReadBadBlock(db ethdb.Reader, hash common.Hash) *types.Block + func ReadBlock(db ethdb.Reader, hash common.Hash, number uint64) *types.Block + func ReadBlockRowConsumption(db ethdb.Reader, l2BlockHash common.Hash) *types.RowConsumption + func ReadBlockRowConsumptionRLP(db ethdb.Reader, l2BlockHash common.Hash) rlp.RawValue + 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 ReadCodeWithPrefix(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadDatabaseVersion(db ethdb.KeyValueReader) *uint64 + func ReadFastTrieProgress(db ethdb.KeyValueReader) uint64 + func ReadFastTxLookupLimit(db ethdb.KeyValueReader) *uint64 + func ReadFinalizedL2BlockNumber(db ethdb.Reader) *uint64 + func ReadFirstQueueIndexNotInL2Block(db ethdb.Reader, l2BlockHash common.Hash) *uint64 + func ReadHeadBlock(db ethdb.Reader) *types.Block + func ReadHeadBlockHash(db ethdb.KeyValueReader) common.Hash + func ReadHeadFastBlockHash(db ethdb.KeyValueReader) common.Hash + func ReadHeadHeader(db ethdb.Reader) *types.Header + 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 ReadHighestSyncedQueueIndex(db ethdb.Reader) uint64 + func ReadL1Message(db ethdb.Reader, queueIndex uint64) *types.L1MessageTx + func ReadL1MessageRLP(db ethdb.Reader, queueIndex uint64) rlp.RawValue + func ReadL1MessagesFrom(db ethdb.Database, startIndex, maxCount uint64) []types.L1MessageTx + func ReadLastPivotNumber(db ethdb.KeyValueReader) *uint64 + func ReadLogs(db ethdb.Reader, hash common.Hash, number uint64, config *params.ChainConfig) [][]*types.Log + func ReadNumSkippedTransactions(db ethdb.Reader) uint64 + 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, config *params.ChainConfig) types.Receipts + func ReadReceiptsRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadRollupEventSyncedL1BlockNumber(db ethdb.Reader) *uint64 + func ReadSkippedTransactionHash(db ethdb.Reader, index uint64) *common.Hash + func ReadSnapshotDisabled(db ethdb.KeyValueReader) bool + func ReadSnapshotGenerator(db ethdb.KeyValueReader) []byte + func ReadSnapshotJournal(db ethdb.KeyValueReader) []byte + func ReadSnapshotRecoveryNumber(db ethdb.KeyValueReader) *uint64 + func ReadSnapshotRoot(db ethdb.KeyValueReader) common.Hash + func ReadSnapshotSyncStatus(db ethdb.KeyValueReader) []byte + func ReadStorageSnapshot(db ethdb.KeyValueReader, accountHash, storageHash common.Hash) []byte + func ReadSyncedL1BlockNumber(db ethdb.Reader) *uint64 + func ReadTd(db ethdb.Reader, hash common.Hash, number uint64) *big.Int + func ReadTdRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue + func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64) + func ReadTrieNode(db ethdb.KeyValueReader, hash common.Hash) []byte + func ReadTxIndexTail(db ethdb.KeyValueReader) *uint64 + func ReadTxLookupEntry(db ethdb.Reader, hash common.Hash) *uint64 + func SetL1MessageLegacyPrefix() + func SkippedTransactionHashKey(index uint64) []byte + func SkippedTransactionKey(txHash common.Hash) []byte + func UnindexTransactions(db ethdb.Database, from uint64, to uint64, interrupt chan struct{}) + func WriteAccountSnapshot(db ethdb.KeyValueWriter, hash common.Hash, entry []byte) + func WriteAncientBlocks(db ethdb.AncientWriter, blocks []*types.Block, receipts []types.Receipts, ...) (int64, error) + func WriteBadBlock(db ethdb.KeyValueStore, block *types.Block) + func WriteBatchChunkRanges(db ethdb.KeyValueWriter, batchIndex uint64, ...) + func WriteBlock(db ethdb.KeyValueWriter, block *types.Block) + func WriteBlockRowConsumption(db ethdb.KeyValueWriter, l2BlockHash common.Hash, rc *types.RowConsumption) + 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 WriteFastTrieProgress(db ethdb.KeyValueWriter, count uint64) + func WriteFastTxLookupLimit(db ethdb.KeyValueWriter, number uint64) + func WriteFinalizedBatchMeta(db ethdb.KeyValueWriter, batchIndex uint64, ...) + func WriteFinalizedL2BlockNumber(db ethdb.KeyValueWriter, l2BlockNumber uint64) + func WriteFirstQueueIndexNotInL2Block(db ethdb.KeyValueWriter, l2BlockHash common.Hash, queueIndex uint64) + func WriteHeadBlockHash(db ethdb.KeyValueWriter, hash common.Hash) + func WriteHeadFastBlockHash(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 WriteHighestSyncedQueueIndex(db ethdb.KeyValueWriter, queueIndex uint64) + func WriteL1Message(db ethdb.KeyValueWriter, l1Msg types.L1MessageTx) + func WriteL1Messages(db ethdb.KeyValueWriter, l1Msgs []types.L1MessageTx) + func WriteLastPivotNumber(db ethdb.KeyValueWriter, pivot uint64) + func WritePreimages(db ethdb.KeyValueWriter, preimages map[common.Hash][]byte) + func WriteReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64, ...) + func WriteRollupEventSyncedL1BlockNumber(db ethdb.KeyValueWriter, l1BlockNumber uint64) + func WriteSkippedTransaction(db ethdb.Database, tx *types.Transaction, traces *types.BlockTrace, ...) + func WriteSnapshotDisabled(db ethdb.KeyValueWriter) + func WriteSnapshotGenerator(db ethdb.KeyValueWriter, generator []byte) + func WriteSnapshotJournal(db ethdb.KeyValueWriter, journal []byte) + func WriteSnapshotRecoveryNumber(db ethdb.KeyValueWriter, number uint64) + func WriteSnapshotRoot(db ethdb.KeyValueWriter, root common.Hash) + func WriteSnapshotSyncStatus(db ethdb.KeyValueWriter, status []byte) + func WriteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash, entry []byte) + func WriteSyncedL1BlockNumber(db ethdb.KeyValueWriter, L1BlockNumber uint64) + func WriteTd(db ethdb.KeyValueWriter, hash common.Hash, number uint64, td *big.Int) + func WriteTrieNode(db ethdb.KeyValueWriter, hash common.Hash, node []byte) + 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 ChunkBlockRange struct + EndBlockNumber uint64 + StartBlockNumber uint64 + func ReadBatchChunkRanges(db ethdb.Reader, batchIndex uint64) []*ChunkBlockRange + type FinalizedBatchMeta struct + BatchHash common.Hash + StateRoot common.Hash + TotalL1MessagePopped uint64 + WithdrawRoot common.Hash + func ReadFinalizedBatchMeta(db ethdb.Reader, batchIndex uint64) *FinalizedBatchMeta + type L1MessageIterator struct + func IterateL1MessagesFrom(db ethdb.Database, fromQueueIndex uint64) L1MessageIterator + func (it *L1MessageIterator) L1Message() types.L1MessageTx + func (it *L1MessageIterator) Next() bool + func (it *L1MessageIterator) QueueIndex() uint64 + func (it *L1MessageIterator) Release() + 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 SkippedTransaction struct + BlockHash *common.Hash + BlockNumber uint64 + Reason string + Tx *types.Transaction + type SkippedTransactionIterator struct + func IterateSkippedTransactionsFrom(db ethdb.Database, index uint64) SkippedTransactionIterator + func (it *SkippedTransactionIterator) Index() uint64 + func (it *SkippedTransactionIterator) Next() bool + func (it *SkippedTransactionIterator) Release() + func (it *SkippedTransactionIterator) TransactionHash() common.Hash + type SkippedTransactionV2 struct + BlockHash *common.Hash + BlockNumber uint64 + Reason string + TracesBytes []byte + Tx *types.Transaction + func ReadSkippedTransaction(db ethdb.Reader, txHash common.Hash) *SkippedTransactionV2