From f12bd5e9ed9e2ca68e87a6d56b0302733ee6526a Mon Sep 17 00:00:00 2001 From: Naohiro Yoshida Date: Thu, 2 Nov 2023 11:12:04 +0900 Subject: [PATCH] change config Signed-off-by: Naohiro Yoshida --- e2e/config/demo/ibc-0.json | 2 +- e2e/config/demo/ibc-1.json | 1 + module/config.pb.go | 14 +++++++------- proto/relayer/provers/parlia/config/config.proto | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/e2e/config/demo/ibc-0.json b/e2e/config/demo/ibc-0.json index 2fd9bee..61afb59 100644 --- a/e2e/config/demo/ibc-0.json +++ b/e2e/config/demo/ibc-0.json @@ -15,7 +15,7 @@ }, "prover": { "@type": "/relayer.provers.parlia.config.ProverConfig", - "trustingPeriod": "50s", + "trustingPeriod": "86400s", "maxClockDrift" : "0.001s", "refreshThresholdRate": { "numerator": 1, diff --git a/e2e/config/demo/ibc-1.json b/e2e/config/demo/ibc-1.json index 141b772..b69c6d6 100644 --- a/e2e/config/demo/ibc-1.json +++ b/e2e/config/demo/ibc-1.json @@ -16,6 +16,7 @@ "prover": { "@type": "/relayer.provers.parlia.config.ProverConfig", "trustingPeriod": "86400s", + "maxClockDrift" : "0.001s", "refreshThresholdRate": { "numerator": 1, "denominator": 2 diff --git a/module/config.pb.go b/module/config.pb.go index 602a0b1..88327b1 100644 --- a/module/config.pb.go +++ b/module/config.pb.go @@ -30,7 +30,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type ProverConfig struct { TrustingPeriod time.Duration `protobuf:"bytes,1,opt,name=trusting_period,json=trustingPeriod,proto3,stdduration" json:"trusting_period"` MaxClockDrift time.Duration `protobuf:"bytes,2,opt,name=max_clock_drift,json=maxClockDrift,proto3,stdduration" json:"max_clock_drift"` - RefreshThresholdRate *Fraction `protobuf:"bytes,5,opt,name=refresh_threshold_rate,json=refreshThresholdRate,proto3" json:"refresh_threshold_rate,omitempty"` + RefreshThresholdRate *Fraction `protobuf:"bytes,3,opt,name=refresh_threshold_rate,json=refreshThresholdRate,proto3" json:"refresh_threshold_rate,omitempty"` } func (m *ProverConfig) Reset() { *m = ProverConfig{} } @@ -151,7 +151,7 @@ func init() { var fileDescriptor_4d00ceb9ab8b08a6 = []byte{ // 367 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xbf, 0x6a, 0xe3, 0x40, - 0x10, 0xc6, 0x25, 0x73, 0x77, 0xf8, 0xd6, 0x77, 0x67, 0x10, 0xe6, 0xf0, 0x99, 0x8b, 0x6c, 0xdc, + 0x10, 0xc6, 0x25, 0xdf, 0x71, 0xf8, 0xd6, 0x77, 0x67, 0x10, 0xe6, 0xf0, 0x99, 0x8b, 0x6c, 0xdc, 0x24, 0x04, 0xbc, 0x0b, 0xc9, 0x1b, 0xd8, 0x26, 0x90, 0x3f, 0x85, 0x11, 0xa9, 0x02, 0x41, 0xac, 0xa4, 0x95, 0xb4, 0x44, 0xd2, 0x88, 0xf1, 0x2a, 0x38, 0x6f, 0x90, 0x32, 0x65, 0x1e, 0xc9, 0xa5, 0xcb, 0x54, 0x49, 0xb0, 0x5f, 0x24, 0x68, 0x25, 0x91, 0x54, 0x21, 0xd5, 0x0e, 0x33, 0xdf, 0xf7, @@ -165,14 +165,14 @@ var fileDescriptor_4d00ceb9ab8b08a6 = []byte{ 0xe7, 0x4f, 0xe3, 0x5d, 0x68, 0xab, 0x75, 0x4e, 0xba, 0x29, 0x5f, 0xb9, 0x7e, 0x02, 0xfe, 0x8d, 0x1b, 0xa0, 0x0c, 0x55, 0xbf, 0xf5, 0x75, 0xda, 0xef, 0x94, 0xaf, 0x66, 0xa5, 0x75, 0x5e, 0x3a, 0xad, 0x6b, 0xf2, 0x17, 0x45, 0x88, 0x62, 0x19, 0xbb, 0x2a, 0x2e, 0x1f, 0x48, 0x02, 0x17, 0xb9, - 0x12, 0xfd, 0xef, 0x9a, 0xb9, 0x4f, 0x3f, 0xbd, 0x10, 0x3d, 0x41, 0xee, 0x97, 0x09, 0x4e, 0xaf, + 0x12, 0xfd, 0x6f, 0x9a, 0xb9, 0x4f, 0x3f, 0xbd, 0x10, 0x3d, 0x41, 0xee, 0x97, 0x09, 0x4e, 0xaf, 0xc6, 0x5c, 0x36, 0x14, 0x87, 0x2b, 0x31, 0x3e, 0x23, 0xed, 0x46, 0x61, 0xfd, 0x27, 0x3f, 0xb3, - 0x22, 0x15, 0xc8, 0x15, 0xa0, 0xde, 0xff, 0x9b, 0xf3, 0xde, 0xb0, 0x46, 0xa4, 0x13, 0x88, 0x0c, + 0x22, 0x15, 0xc8, 0x15, 0xa0, 0xde, 0xff, 0xbb, 0xf3, 0xde, 0xb0, 0x46, 0xa4, 0x13, 0x88, 0x0c, 0x52, 0x99, 0xe9, 0x79, 0x4b, 0xcf, 0x3f, 0xb6, 0xa6, 0xa7, 0xeb, 0xad, 0x6d, 0x6e, 0xb6, 0xb6, 0xf9, 0xba, 0xb5, 0xcd, 0x87, 0x9d, 0x6d, 0x6c, 0x76, 0xb6, 0xf1, 0xb4, 0xb3, 0x8d, 0x2b, 0x16, 0x49, 0x15, 0x17, 0x1e, 0xf5, 0x21, 0x65, 0x01, 0x57, 0xdc, 0x8f, 0xb9, 0xcc, 0x12, 0xee, 0x31, 0xe9, 0xf9, 0x93, 0xea, 0xbf, 0x13, 0xbd, 0x06, 0x4b, 0x21, 0x28, 0x12, 0xe1, 0xfd, 0xd0, 0x17, - 0x3a, 0x7e, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x5c, 0x69, 0x66, 0x2b, 0x02, 0x00, 0x00, + 0x3a, 0x7e, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x18, 0xe4, 0x64, 0x12, 0x2b, 0x02, 0x00, 0x00, } func (m *ProverConfig) Marshal() (dAtA []byte, err error) { @@ -205,7 +205,7 @@ func (m *ProverConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintConfig(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.MaxClockDrift, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxClockDrift):]) if err2 != nil { @@ -403,7 +403,7 @@ func (m *ProverConfig) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RefreshThresholdRate", wireType) } diff --git a/proto/relayer/provers/parlia/config/config.proto b/proto/relayer/provers/parlia/config/config.proto index f34fa11..260a8ca 100644 --- a/proto/relayer/provers/parlia/config/config.proto +++ b/proto/relayer/provers/parlia/config/config.proto @@ -8,7 +8,7 @@ import "gogoproto/gogo.proto"; message ProverConfig { google.protobuf.Duration trusting_period = 1 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; google.protobuf.Duration max_clock_drift = 2 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; - Fraction refresh_threshold_rate = 5; + Fraction refresh_threshold_rate = 3; } message Fraction {