bigfilterdb

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package bigfilterdb package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigFilterDB

type BigFilterDB interface {

	// InitGenesis
	//  @Description: 初始化,写入一个创世区块:0号区块
	//  @param genesisBlock
	//  @return error
	InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error

	// CommitBlock
	//  @Description: commits the txId and savepoint in an atomic operation
	//  @param blockWithRWSet
	//  @param isCache
	//  @return error
	CommitBlock(blockWithRWSet *serialization.BlockWithSerializedInfo, isCache bool) error

	// GetLastSavepoint
	//  @Description: returns the last block height
	//  @return uint64
	//  @return error
	GetLastSavepoint() (uint64, error)

	// TxExists
	//  @Description: if not exists  returns (false,false,nil) . if exists return (true,_,nil).
	// If probably exists return (false,true,nil)
	//  @param txId
	//  @return bool
	//  @return bool
	//  @return error
	TxExists(txId string) (bool, bool, error)

	// Close
	//  @Description: is used to close database
	Close()
}

BigFilterDB provides handle to block and tx instances

Directories

Path Synopsis
Package bigfilterkvdb package @Description:
Package bigfilterkvdb package @Description:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL