Merges the keybase and Ledger code from go-crypto (which is no more) into the SDK Adds support for Ledger into gaiacli Cherry-picks updated error handling from #1158
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
|