16 lines
613 B
Go
16 lines
613 B
Go
package types
|
|
|
|
import abci "github.com/tendermint/tendermint/abci/types"
|
|
|
|
// initialize application state at genesis
|
|
type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain
|
|
|
|
// run code before the transactions in a block
|
|
type BeginBlocker func(ctx Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
|
|
|
|
// run code after the transactions in a block and return updates to the validator set
|
|
type EndBlocker func(ctx Context, req abci.RequestEndBlock) abci.ResponseEndBlock
|
|
|
|
// respond to p2p filtering queries from Tendermint
|
|
type PeerFilter func(info string) abci.ResponseQuery
|