store

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	HasTx(hash string) (bool, error)
	GetTx(hash string) (*statechain.Transaction, error)
	GetTxs(hashes []string) ([]*statechain.Transaction, error)
	RemoveTx(hash string) error
	RemoveTxs(hashes []string) error
	AddTx(tx *statechain.Transaction) error
	GatherPendingTransactions() ([]*statechain.Transaction, error)
	GetHeadBlock() (mainchain.Block, error)
	SetHeadBlock(block *mainchain.Block) error
	SetPendingMainchainBlock(block *mainchain.Block) error
	GetPendingMainchainBlocks() ([]*mainchain.Block, error)
	RemovePendingMainchainBlock(blockHash string) error
	RemovePendingMainchainBlocks(blockHashes []string) error
}

Interface ...

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL