Skip to content

Commit

Permalink
consensus mapper add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TokenxyWZY committed Feb 20, 2019
1 parent af506ac commit 3dc7d98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion baseabci/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ func (app *BaseApp) SetGasHandler(handler GasHandler) {
panic("SetGasHandler() on sealed BaseApp")
}
app.gasHandler = handler
}
}
1 change: 1 addition & 0 deletions consensus/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 1 addition & 0 deletions consensus/consensus_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const (
consensusKey = "cons_params"
)

//存储共识参数mapper
type ConsensusMapper struct {
*mapper.BaseMapper
}
Expand Down

0 comments on commit 3dc7d98

Please sign in to comment.