github.com/Finschia/finschia-sdk@v0.48.1/types/abci.go (about)

     1  package types
     2  
     3  import (
     4  	abci "github.com/tendermint/tendermint/abci/types"
     5  
     6  	ocabci "github.com/Finschia/ostracon/abci/types"
     7  )
     8  
     9  // InitChainer initializes application state at genesis
    10  type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain
    11  
    12  // BeginBlocker runs code before the transactions in a block
    13  //
    14  // Note: applications which set create_empty_blocks=false will not have regular block timing and should use
    15  // e.g. BFT timestamps rather than block height for any periodic BeginBlock logic
    16  type BeginBlocker func(ctx Context, req ocabci.RequestBeginBlock) abci.ResponseBeginBlock
    17  
    18  // EndBlocker runs code after the transactions in a block and return updates to the validator set
    19  //
    20  // Note: applications which set create_empty_blocks=false will not have regular block timing and should use
    21  // e.g. BFT timestamps rather than block height for any periodic EndBlock logic
    22  type EndBlocker func(ctx Context, req abci.RequestEndBlock) abci.ResponseEndBlock
    23  
    24  // PeerFilter responds to p2p filtering queries from Tendermint
    25  type PeerFilter func(info string) abci.ResponseQuery