Skip to content

Commit 8d63d71

Browse files
authoredMay 11, 2020
abci: regenerate proto files
## Description regenerate proto stubs I do find max_num to be vague. possibly renaming to max_entries or max_evidence_entries may be more descriptive? Closes: #XXX
1 parent 7cb3d90 commit 8d63d71

File tree

5 files changed

+265
-222
lines changed

5 files changed

+265
-222
lines changed
 

‎abci/types/types.pb.go

+225-186
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎proto/types/params.pb.go

+37-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎types/params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (params ConsensusParams) Update(params2 *abci.ConsensusParams) ConsensusPar
224224
if params2.Evidence != nil {
225225
res.Evidence.MaxAgeNumBlocks = params2.Evidence.MaxAgeNumBlocks
226226
res.Evidence.MaxAgeDuration = params2.Evidence.MaxAgeDuration
227-
res.Evidence.MaxNum = params2.Evidence.MaxNumEvidence
227+
res.Evidence.MaxNum = params2.Evidence.MaxNum
228228
}
229229
if params2.Validator != nil {
230230
// Copy params2.Validator.PubkeyTypes, and set result's value to the copy.

‎types/params_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func TestConsensusParamsUpdate(t *testing.T) {
124124
Evidence: &abci.EvidenceParams{
125125
MaxAgeNumBlocks: 300,
126126
MaxAgeDuration: time.Duration(300),
127-
MaxNumEvidence: 50,
127+
MaxNum: 50,
128128
},
129129
Validator: &abci.ValidatorParams{
130130
PubKeyTypes: valSecp256k1,

‎types/protobuf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (tm2pb) ConsensusParams(params *ConsensusParams) *abci.ConsensusParams {
139139
Evidence: &abci.EvidenceParams{
140140
MaxAgeNumBlocks: params.Evidence.MaxAgeNumBlocks,
141141
MaxAgeDuration: params.Evidence.MaxAgeDuration,
142-
MaxNumEvidence: params.Evidence.MaxNum,
142+
MaxNum: params.Evidence.MaxNum,
143143
},
144144
Validator: &abci.ValidatorParams{
145145
PubKeyTypes: params.Validator.PubKeyTypes,

0 commit comments

Comments
 (0)
Please sign in to comment.