|
|
@ -184,10 +184,6 @@ type EvidenceParams struct { |
|
|
|
// each evidence (See MaxEvidenceBytes). The maximum number is MaxEvidencePerBlock.
|
|
|
|
// Default is 50
|
|
|
|
MaxNum uint32 `protobuf:"varint,3,opt,name=max_num,json=maxNum,proto3" json:"max_num,omitempty"` |
|
|
|
// Proof trial period dictates the time given for nodes accused of amnesia evidence, incorrectly
|
|
|
|
// voting twice in two different rounds to respond with their respective proofs.
|
|
|
|
// Default is half the max age in blocks: 50,000
|
|
|
|
ProofTrialPeriod int64 `protobuf:"varint,4,opt,name=proof_trial_period,json=proofTrialPeriod,proto3" json:"proof_trial_period,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *EvidenceParams) Reset() { *m = EvidenceParams{} } |
|
|
@ -244,13 +240,6 @@ func (m *EvidenceParams) GetMaxNum() uint32 { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
func (m *EvidenceParams) GetProofTrialPeriod() int64 { |
|
|
|
if m != nil { |
|
|
|
return m.ProofTrialPeriod |
|
|
|
} |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
// ValidatorParams restrict the public key types validators can use.
|
|
|
|
// NOTE: uses ABCI pubkey naming, not Amino names.
|
|
|
|
type ValidatorParams struct { |
|
|
@ -409,43 +398,42 @@ func init() { |
|
|
|
func init() { proto.RegisterFile("tendermint/types/params.proto", fileDescriptor_e12598271a686f57) } |
|
|
|
|
|
|
|
var fileDescriptor_e12598271a686f57 = []byte{ |
|
|
|
// 572 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, |
|
|
|
0x14, 0x8d, 0xeb, 0x7e, 0x6d, 0x7a, 0xd3, 0x34, 0xd1, 0xe8, 0x93, 0x08, 0x45, 0xb5, 0x83, 0x17, |
|
|
|
0xa8, 0x12, 0xc8, 0x96, 0x60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x85, 0xae, 0x3e, 0xee, 0x68, 0x43, 0xcd, 0x5f, 0xfc, 0x09, |
|
|
|
0x00, 0x00, 0xff, 0xff, 0xf4, 0xdd, 0x09, 0xef, 0xf7, 0x03, 0x00, 0x00, |
|
|
|
// 545 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x4f, 0x6f, 0xd3, 0x30, |
|
|
|
0x1c, 0xad, 0xd7, 0xb2, 0xb5, 0xbf, 0xae, 0xeb, 0x64, 0x21, 0x51, 0x86, 0x96, 0x94, 0x1c, 0xd0, |
|
|
|
0x24, 0xa4, 0x44, 0x82, 0x03, 0x62, 0x97, 0x89, 0xc0, 0x34, 0x10, 0xea, 0x84, 0x22, 0xe0, 0xb0, |
|
|
|
0x4b, 0xe4, 0xb4, 0x26, 0x8b, 0x56, 0xc7, 0x51, 0x6c, 0x57, 0xed, 0xb7, 0xe0, 0xb8, 0xe3, 0x2e, |
|
|
|
0x48, 0x7c, 0x04, 0x3e, 0xc2, 0x8e, 0x3b, 0x72, 0x02, 0xd4, 0x5e, 0xf8, 0x18, 0x28, 0x4e, 0x4d, |
|
|
|
0xff, 0x6c, 0xb7, 0xe4, 0xf7, 0x7b, 0xef, 0xd9, 0xef, 0x3d, 0x19, 0xf6, 0x25, 0x4d, 0x07, 0x34, |
|
|
|
0x67, 0x49, 0x2a, 0x3d, 0x39, 0xc9, 0xa8, 0xf0, 0x32, 0x92, 0x13, 0x26, 0xdc, 0x2c, 0xe7, 0x92, |
|
|
|
0xe3, 0xdd, 0xc5, 0xda, 0xd5, 0xeb, 0xbd, 0xfb, 0x31, 0x8f, 0xb9, 0x5e, 0x7a, 0xc5, 0x57, 0x89, |
|
|
|
0xdb, 0xb3, 0x62, 0xce, 0xe3, 0x21, 0xf5, 0xf4, 0x5f, 0xa4, 0xbe, 0x78, 0x03, 0x95, 0x13, 0x99, |
|
|
|
0xf0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0xa1, 0xeb, 0xa9, 0x85, 0x6e, 0xa6, 0x16, 0xfa, 0x33, 0xb5, 0xd0, |
|
|
|
0xd7, 0x99, 0x55, 0xb9, 0x99, 0x59, 0x95, 0x9f, 0x33, 0xab, 0x72, 0xf6, 0x22, 0x4e, 0xe4, 0xb9, |
|
|
|
0x8a, 0xdc, 0x3e, 0x67, 0xde, 0xf2, 0x93, 0x5c, 0x7c, 0x96, 0x6f, 0x6e, 0xfd, 0xb9, 0x46, 0x9b, |
|
|
|
0x7a, 0xfe, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x53, 0x0a, 0x6c, 0x0d, 0xc9, 0x03, 0x00, |
|
|
|
0x00, |
|
|
|
} |
|
|
|
|
|
|
|
func (this *ConsensusParams) Equal(that interface{}) bool { |
|
|
@ -539,9 +527,6 @@ func (this *EvidenceParams) Equal(that interface{}) bool { |
|
|
|
if this.MaxNum != that1.MaxNum { |
|
|
|
return false |
|
|
|
} |
|
|
|
if this.ProofTrialPeriod != that1.ProofTrialPeriod { |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
} |
|
|
|
func (this *ValidatorParams) Equal(that interface{}) bool { |
|
|
@ -745,11 +730,6 @@ func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.ProofTrialPeriod != 0 { |
|
|
|
i = encodeVarintParams(dAtA, i, uint64(m.ProofTrialPeriod)) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x20 |
|
|
|
} |
|
|
|
if m.MaxNum != 0 { |
|
|
|
i = encodeVarintParams(dAtA, i, uint64(m.MaxNum)) |
|
|
|
i-- |
|
|
@ -1016,9 +996,6 @@ func (m *EvidenceParams) Size() (n int) { |
|
|
|
if m.MaxNum != 0 { |
|
|
|
n += 1 + sovParams(uint64(m.MaxNum)) |
|
|
|
} |
|
|
|
if m.ProofTrialPeriod != 0 { |
|
|
|
n += 1 + sovParams(uint64(m.ProofTrialPeriod)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
@ -1465,25 +1442,6 @@ func (m *EvidenceParams) Unmarshal(dAtA []byte) error { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
case 4: |
|
|
|
if wireType != 0 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ProofTrialPeriod", wireType) |
|
|
|
} |
|
|
|
m.ProofTrialPeriod = 0 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowParams |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
m.ProofTrialPeriod |= int64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipParams(dAtA[iNdEx:]) |
|
|
|