package
1.2.0
Repository: https://github.com/qitmeer/qng.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteSnapshotDisabled deletes the flag keeping the snapshot maintenance disabled.
DeleteSnapshotGenerator deletes the serialized snapshot generator saved at the last shutdown.
DeleteSnapshotJournal deletes the serialized in-memory diff layers saved at the last shutdown.
DeleteSnapshotRecoveryNumber deletes the block number of the last persisted snapshot layer.
DeleteSnapshotRoot deletes the hash of the block whose state is contained in the persisted snapshot.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InspectDatabase traverses the entire database and checks the size of all different categories of data.
InspectFreezerTable dumps out the index of a specific freezer table.
No description provided by the author
NewChainFreezer is a small utility method around NewFreezer that sets the default parameters for the chain storage.
NewDatabase creates a high level database on top of a given key-value data store without a freezer moving immutable chain segments into cold storage.
NewDatabaseWithFreezer creates a high level database on top of a given key- value data store with a freezer moving immutable chain segments into cold storage.
NewFreezer creates a freezer instance for maintaining immutable ordered data according to the given parameters.
NewKeyLengthIterator returns a wrapped version of the iterator that will only return key-value pairs where keys with a specific key length will be returned.
NewLevelDBDatabase creates a persistent key-value database without a freezer moving immutable chain segments into cold storage.
NewMemoryDatabase creates an ephemeral in-memory key-value database without a freezer moving immutable chain segments into cold storage.
NewMemoryDatabaseWithCap creates an ephemeral in-memory key-value database with an initial starting capacity, but without a freezer moving immutable chain segments into cold storage.
NewPebbleDBDatabase creates a persistent key-value database without a freezer moving immutable chain segments into cold storage.
NewResettableFreezer creates a resettable freezer, note freezer is only resettable if the passed file directory is exclusively occupied by the freezer.
NewStateFreezer initializes the freezer for state history.
NewTable returns a database object that prefixes all keys with a given string.
Open opens both a disk-based key-value database such as leveldb or pebble, but also integrates it with a freezer database -- if the AncientDir option has been set on the provided OpenOptions.
PopUncleanShutdownMarker removes the last unclean shutdown marker.
PreexistingDatabase checks the given data directory whether a database is already instantiated at that location, and if so, returns the type of database (or the empty string).
PushUncleanShutdownMarker appends a new unclean shutdown marker and returns the previous data - a list of timestamps - a count of how many old unclean-shutdowns have been discarded.
addr index.
best chain state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadChainMetadata returns a set of key/value pairs that contains informatin about the database chain status.
No description provided by the author
No description provided by the author
dag info.
dag tips.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
dag diff anticone.
estimatefee.
No description provided by the author
header.
No description provided by the author
tx full hash.
invalid tx index.
No description provided by the author
No description provided by the author
ReadSnapshotDisabled retrieves if the snapshot maintenance is disabled.
ReadSnapshotGenerator retrieves the serialized snapshot generator saved at the last shutdown.
No description provided by the author
ReadSnapshotRecoveryNumber retrieves the block number of the last persisted snapshot layer.
ReadSnapshotRoot retrieves the root of the block whose state is contained in the persisted snapshot.
ReadSnapshotSyncStatus retrieves the serialized sync status saved at shutdown.
No description provided by the author
No description provided by the author
No description provided by the author
tx full hash.
No description provided by the author
No description provided by the author
UpdateUncleanShutdownMarker updates the last marker's timestamp to now.
UseLogger uses a specified Logger to output package logging info.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteSnapshotDisabled stores the snapshot pause flag.
WriteSnapshotGenerator stores the serialized snapshot generator to save at shutdown.
No description provided by the author
WriteSnapshotRecoveryNumber stores the block number of the last persisted snapshot layer.
WriteSnapshotRoot stores the root of the block whose state is contained in the persisted snapshot.
WriteSnapshotSyncStatus stores the serialized sync status to save at shutdown.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

The list of table names of chain freezer.
The list of table names of chain freezer.
The list of table names of chain freezer.
Pebble is unsuported on 32bit architecture.

# Variables

The fields below define the low level database schema prefixing.
BlockIndexVersionKeyName is the name of the database key used to house the database block index version.
CompressionVersionKeyName is the name of the database key used to house the database compression version.
CreatedKeyName is the name of the database key used to house date the database was created.
EstimateFeeDatabaseKey is the key that we use to store the fee estimator in the database.
SnapshotBlockOrderPrefix + block order -> block id.
SnapshotBlockStatusPrefix + block id -> block status.
SnapshotRootKey tracks the hash of the last snapshot.
VersionKeyName is the name of the database key used to house the database version.

# Structs

Freezer is a memory mapped append-only database to store immutable ordered data into flat files: - The append-only nature ensures that disk writes are minimized.
KeyLengthIterator is a wrapper for a database iterator that ensures only key-value pairs with a specific key length will be returned.
OpenOptions contains the options to apply when opening a database.
ResettableFreezer is a wrapper of the freezer which makes the freezer resettable.