bft

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 9 Imported by: 2

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.ResponseCheckTx

CheckTx checks a transaction

func (*BftApplication) Commit

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

Commit commits transactions

func (*BftApplication) DeliverTx

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

DeliverTx delivers transactions.Transactions are either "key=value" or just arbitrary bytes

func (*BftApplication) Info

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

Info returns information

func (*BftApplication) Query

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

Query retrieves a transaction from the network

Jump to

Keyboard shortcuts

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