Discover Packages
github.com/onflow/flow-archive
util
package
Version:
v0.31.14
Opens a new window with list of versions in this module.
Published: Jul 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ValidateHeightDataAvailable checks if the data for the requested height
is available in the archive node. If not, it returns an error.
Flush will call the badger Batch's Flush method, in
addition, it will call the callbacks added by
OnSucceed
func (b *Batch ) OnSucceed(callback func())
OnSucceed adds a callback to execute after the batch has
been successfully flushed.
useful for implementing the cache where we will only cache
after the batch has been successfully flushed
Source Files
¶
Click to show internal directories.
Click to hide internal directories.