diff --git a/baseabci/options.go b/baseabci/options.go index 6129af1..58e3b28 100644 --- a/baseabci/options.go +++ b/baseabci/options.go @@ -107,4 +107,4 @@ func (app *BaseApp) SetGasHandler(handler GasHandler) { panic("SetGasHandler() on sealed BaseApp") } app.gasHandler = handler -} \ No newline at end of file +} diff --git a/consensus/codec.go b/consensus/codec.go index 3c29fd0..a26a361 100644 --- a/consensus/codec.go +++ b/consensus/codec.go @@ -5,6 +5,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" ) +//共识参数编码 func RegisterCodec(cdc *go_amino.Codec) { cdc.RegisterConcrete(&abci.ConsensusParams{}, "abci/consensus/ConsensusParams", nil) } diff --git a/consensus/consensus_mapper.go b/consensus/consensus_mapper.go index 1a54d48..3a497b1 100644 --- a/consensus/consensus_mapper.go +++ b/consensus/consensus_mapper.go @@ -12,6 +12,7 @@ const ( consensusKey = "cons_params" ) +//存储共识参数mapper type ConsensusMapper struct { *mapper.BaseMapper }