fix: Adding node_url
to enclave_start
to enable enclave to work with external blockchains (#216)
This commit is contained in:
parent
7b256e0f89
commit
69dcb6fc90
2 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ loader.argv = ["quartz-app-transfers-enclave",
|
|||
"--fmspc", "{{ fmspc }}",
|
||||
"--tcbinfo-contract", "{{ tcbinfo_contract }}",
|
||||
"--dcap-verifier-contract", "{{ dcap_verifier_contract }}",
|
||||
"--node-url", "{{ node_url }}",
|
||||
"--rpc-addr", "0.0.0.0:11090",
|
||||
"--trusted-height", "{{ trusted_height }}",
|
||||
"--trusted-hash", "{{ trusted_hash }}"]
|
||||
|
|
|
@ -85,6 +85,7 @@ impl Handler for EnclaveStartRequest {
|
|||
fmspc,
|
||||
tcbinfo_contract,
|
||||
dcap_verifier_contract,
|
||||
&config.node_url,
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
@ -181,6 +182,7 @@ async fn gramine_manifest(
|
|||
fmspc: Fmspc,
|
||||
tcbinfo_contract: AccountId,
|
||||
dcap_verifier_contract: AccountId,
|
||||
node_url: &str,
|
||||
) -> Result<(), Error> {
|
||||
let host = target_lexicon::HOST;
|
||||
let arch_libdir = format!(
|
||||
|
@ -205,6 +207,7 @@ async fn gramine_manifest(
|
|||
.arg(format!("-Dtrusted_height={}", trusted_height))
|
||||
.arg(format!("-Dtrusted_hash={}", trusted_hash))
|
||||
.arg(format!("-Dfmspc={}", hex::encode(fmspc)))
|
||||
.arg(format!("-Dnode_url={}", node_url))
|
||||
.arg(format!("-Dtcbinfo_contract={}", tcbinfo_contract))
|
||||
.arg(format!(
|
||||
"-Ddcap_verifier_contract={}",
|
||||
|
|
Loading…
Reference in a new issue