Skip to content

Commit

Permalink
Revert back to using gpp for set config
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Jan 3, 2025
1 parent 8937472 commit d11644a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion integration-tests/common/gauntlet_plus_plus_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ func (m *OCRv2TestState) DeployGauntletPP(minSubmissionValue int64, maxSubmissio
return err
}

err = m.setConfigDetails(m.Contracts.OCRAddr)
err = m.setConfigDetailsWithGpp(m.Contracts.OCRAddr)
return err
}
40 changes: 20 additions & 20 deletions ops/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ type OCR2Config struct {
}

type OffchainConfig struct {
DeltaProgressNanoseconds int64 `json:"deltaProgressNanoseconds"`
DeltaResendNanoseconds int64 `json:"deltaResendNanoseconds"`
DeltaRoundNanoseconds int64 `json:"deltaRoundNanoseconds"`
DeltaGraceNanoseconds int `json:"deltaGraceNanoseconds"`
DeltaStageNanoseconds int64 `json:"deltaStageNanoseconds"`
DeltaProgressNanoseconds string `json:"deltaProgress"`
DeltaResendNanoseconds string `json:"deltaResend"`
DeltaRoundNanoseconds string `json:"deltaRound"`
DeltaGraceNanoseconds string `json:"deltaGrace"`
DeltaStageNanoseconds string `json:"deltaStage"`
RMax int `json:"rMax"`
S []int `json:"s"`
OffchainPublicKeys []string `json:"offchainPublicKeys"`
PeerIDs []string `json:"peerIds"`
ReportingPluginConfig *ReportingPluginConfig `json:"reportingPluginConfig"`
MaxDurationQueryNanoseconds int `json:"maxDurationQueryNanoseconds"`
MaxDurationObservationNanoseconds int `json:"maxDurationObservationNanoseconds"`
MaxDurationReportNanoseconds int `json:"maxDurationReportNanoseconds"`
MaxDurationShouldAcceptFinalizedReportNanoseconds int `json:"maxDurationShouldAcceptFinalizedReportNanoseconds"`
MaxDurationShouldTransmitAcceptedReportNanoseconds int `json:"maxDurationShouldTransmitAcceptedReportNanoseconds"`
MaxDurationQueryNanoseconds string `json:"maxDurationQuery"`
MaxDurationObservationNanoseconds string `json:"maxDurationObservation"`
MaxDurationReportNanoseconds string `json:"maxDurationReport"`
MaxDurationShouldAcceptFinalizedReportNanoseconds string `json:"maxDurationShouldAcceptFinalizedReport"`
MaxDurationShouldTransmitAcceptedReportNanoseconds string `json:"maxDurationShouldTransmitAcceptedReport"`
ConfigPublicKeys []string `json:"configPublicKeys"`
}

Expand All @@ -45,11 +45,11 @@ var TestOCR2Config = OCR2Config{
OnchainConfig: "",
OffchainConfig: &OffchainConfig{
// todo: increase delta round but decrease delta stage
DeltaProgressNanoseconds: 150000000000, // 120s
DeltaResendNanoseconds: 150000000000, // 150s
DeltaRoundNanoseconds: 90000000000, // 90s
DeltaGraceNanoseconds: 5000000000, // 5s
DeltaStageNanoseconds: 30000000000, // 20s
DeltaProgressNanoseconds: "150000000000ns", // 120s
DeltaResendNanoseconds: "150000000000ns", // 150s
DeltaRoundNanoseconds: "90000000000ns", // 90s
DeltaGraceNanoseconds: "5000000000ns", // 5s
DeltaStageNanoseconds: "30000000000ns", // 20s
RMax: 5,
S: []int{1, 1}, // Needs to array with length of transmitting nodes
// OffchainPublicKeys: offChainKeys, // user defined
Expand All @@ -61,11 +61,11 @@ var TestOCR2Config = OCR2Config{
AlphaAcceptPpb: 0,
DeltaCNanoseconds: 1000000000,
},
MaxDurationQueryNanoseconds: 2000000000,
MaxDurationObservationNanoseconds: 1000000000,
MaxDurationReportNanoseconds: 2000000000,
MaxDurationShouldAcceptFinalizedReportNanoseconds: 2000000000,
MaxDurationShouldTransmitAcceptedReportNanoseconds: 2000000000,
MaxDurationQueryNanoseconds: "2000000000ns",
MaxDurationObservationNanoseconds: "1000000000ns",
MaxDurationReportNanoseconds: "2000000000ns",
MaxDurationShouldAcceptFinalizedReportNanoseconds: "2000000000ns",
MaxDurationShouldTransmitAcceptedReportNanoseconds: "2000000000ns",
// ConfigPublicKeys: cfgKeys, // user defined
},
OffchainConfigVersion: 2,
Expand Down

0 comments on commit d11644a

Please sign in to comment.