rawdb

package
v0.0.0-...-4502c18 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTxAlreadyExist is returned if tx already exist in tx list.
	ErrTxAlreadyExist = errors.New("Tx already exist")

	// ErrTxNotFound is returned if tx not found.
	ErrTxNotFound = errors.New("Tx not found")
)

Functions

func GetTxByHash

func GetTxByHash(r leveldb.Reader, hash types.Hash) (*types.Tx, error)

GetTx tries to find a transaction in the entire network by its hash.

func WriteTx

func WriteTx(w leveldb.Writer, tx *types.Tx) error

WriteTx writes tx to the database with indexes

Types

This section is empty.

Jump to

Keyboard shortcuts

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