From 3dc7d98d2705f8b07e648cae0382101e231f8894 Mon Sep 17 00:00:00 2001 From: wangzhiyong Date: Wed, 20 Feb 2019 11:06:35 +0800 Subject: [PATCH] consensus mapper add comment --- baseabci/options.go | 2 +- consensus/codec.go | 1 + consensus/consensus_mapper.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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 }