bft

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bft implements the main functions to work with the Blockfreight™ Network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BftApplication

type BftApplication struct {
	types.BaseApplication
	// contains filtered or unexported fields
}

BftApplication struct

func NewBftApplication

func NewBftApplication() *BftApplication

newBftApplication creates a new application

func (*BftApplication) CheckTx

func (app *BftApplication) CheckTx(tx []byte) types.Result

Checktx checks a transaction

func (*BftApplication) Commit

func (app *BftApplication) Commit() types.Result

Commit commits transactions

func (*BftApplication) DeliverTx

func (app *BftApplication) DeliverTx(tx []byte) types.Result

tx is either "key=value" or just arbitrary bytes

func (*BftApplication) Info

func (app *BftApplication) Info() (resInfo types.ResponseInfo)

Info returns information

func (*BftApplication) Query

func (app *BftApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery)

Query executes queries and returns the result

Jump to

Keyboard shortcuts

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