Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a new option is_debug_enclave to allow an enclave created with debug mode #22

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions proto/relayer/provers/lcp/config/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ message ProverConfig {
string elc_client_id = 8;
bool message_aggregation = 9;
uint64 message_aggregation_batch_size = 10;
bool is_debug_enclave = 11;
}
97 changes: 66 additions & 31 deletions relay/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion relay/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (pr *Prover) GetOriginProver() core.Prover {
func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, debug bool) error {
pr.homePath = homePath
pr.codec = codec
if debug {
if pr.config.IsDebugEnclave {
ias.SetAllowDebugEnclaves()
}
if err := pr.originChain.Init(homePath, timeout, codec, debug); err != nil {
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/cases/tm2tm/configs/templates/ibc-0.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"allowed_quote_statuses": ["GROUP_OUT_OF_DATE"],
"allowed_advisory_ids": ["INTEL-SA-00219","INTEL-SA-00289","INTEL-SA-00334","INTEL-SA-00477","INTEL-SA-00614","INTEL-SA-00615","INTEL-SA-00617"],
"key_expiration": 604800,
"elc_client_id": "07-tendermint-1"
"elc_client_id": "07-tendermint-1",
"is_debug_enclave": true
}
}
3 changes: 2 additions & 1 deletion tests/e2e/cases/tm2tm/configs/templates/ibc-1.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"allowed_quote_statuses": ["GROUP_OUT_OF_DATE"],
"allowed_advisory_ids": ["INTEL-SA-00219","INTEL-SA-00289","INTEL-SA-00334","INTEL-SA-00477","INTEL-SA-00614","INTEL-SA-00615","INTEL-SA-00617"],
"key_expiration": 604800,
"elc_client_id": "07-tendermint-0"
"elc_client_id": "07-tendermint-0",
"is_debug_enclave": true
}
}
Loading