2018-02-16 17:15:38 -08:00
|
|
|
package types
|
|
|
|
|
2018-06-28 17:54:47 -07:00
|
|
|
import abci "github.com/tendermint/tendermint/abci/types"
|
2018-02-16 17:15:38 -08:00
|
|
|
|
|
|
|
// initialize application state at genesis
|
2018-02-17 15:10:55 -08:00
|
|
|
type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain
|
|
|
|
|
2018-02-18 10:48:36 -08:00
|
|
|
// run code before the transactions in a block
|
2018-02-17 15:10:55 -08:00
|
|
|
type BeginBlocker func(ctx Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
|
|
|
|
|
2018-02-18 10:48:36 -08:00
|
|
|
// run code after the transactions in a block and return updates to the validator set
|
2018-02-17 15:10:55 -08:00
|
|
|
type EndBlocker func(ctx Context, req abci.RequestEndBlock) abci.ResponseEndBlock
|
2018-05-15 07:00:17 -07:00
|
|
|
|
|
|
|
// respond to p2p filtering queries from Tendermint
|
|
|
|
type PeerFilter func(info string) abci.ResponseQuery
|