abci

package
v0.0.0-...-e95e75c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeveldbDatabase

func NewLeveldbDatabase(dbDir string) (d ledger.Database, err error)

func Start

func Start(dbDir string, doublespend bool) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(broadcastUrl string) (*Client, error)

func (*Client) Broadcast

func (t *Client) Broadcast(transactionBytes []byte) error

func (*Client) ListenForSuccessfulTxEvents

func (t *Client) ListenForSuccessfulTxEvents(onTx func(transactionId []byte)) error

func (*Client) ListenForTxEvents

func (t *Client) ListenForTxEvents(onEvent func(evt types.TMEventData)) error

func (*Client) PrintTxEvent

func (t *Client) PrintTxEvent(evt types.TMEventData)

func (*Client) Stop

func (t *Client) Stop()

type KVStoreApplication

type KVStoreApplication struct {
	// contains filtered or unexported fields
}

func NewKVStoreApplication

func NewKVStoreApplication(db *leveldb.DB) *KVStoreApplication

func (*KVStoreApplication) BeginBlock

func (*KVStoreApplication) CheckTx

func (*KVStoreApplication) Commit

func (*KVStoreApplication) DeliverTx

func (KVStoreApplication) EndBlock

func (KVStoreApplication) Info

func (KVStoreApplication) InitChain

func (*KVStoreApplication) Query

func (app *KVStoreApplication) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)

func (KVStoreApplication) SetOption

type MWApplication

type MWApplication struct {
	// contains filtered or unexported fields
}

func NewMWApplication

func NewMWApplication(db ledger.Database, doublespend bool) *MWApplication

func (*MWApplication) BeginBlock

func (*MWApplication) CheckTx

func (*MWApplication) Commit

func (app *MWApplication) Commit() abcitypes.ResponseCommit

func (*MWApplication) DeliverTx

func (MWApplication) EndBlock

func (MWApplication) Info

func (*MWApplication) InitChain

func (*MWApplication) Query

func (app *MWApplication) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)

func (MWApplication) SetOption

Jump to

Keyboard shortcuts

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