Documentation ¶
Overview ¶
Package bft implements the main functions to work with the Blockfreight™ Network.
Index ¶
- type BftApplication
- func (app *BftApplication) CheckTx(tx []byte) types.ResponseCheckTx
- func (app *BftApplication) Commit() types.ResponseCommit
- func (app *BftApplication) DeliverTx(tx []byte) types.ResponseDeliverTx
- func (app *BftApplication) Info(req types.RequestInfo) (resInfo types.ResponseInfo)
- func (app *BftApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery)
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
Click to show internal directories.
Click to hide internal directories.