Skip to content
Snippets Groups Projects
Commit c6453409 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix distance oracle entrypoint

- reorder dependencies
- update entrypoint with correct arg
parent 211ba93c
No related branches found
No related tags found
No related merge requests found
Pipeline #36072 waiting for manual action
......@@ -27,26 +27,31 @@ try-runtime = ["sp-distance/try-runtime", "sp-runtime/try-runtime"]
runtime-benchmarks = []
[dependencies]
# crates.io dependencies
log = { workspace = true }
simple_logger = { workspace = true }
clap = { workspace = true, features = ["derive"], optional = true }
codec = { workspace = true }
fnv = { workspace = true }
hex = { workspace = true }
log = { workspace = true }
num-traits = { workspace = true }
rayon = { workspace = true }
simple_logger = { workspace = true }
sp-core = { workspace = true }
sp-distance = { workspace = true }
sp-runtime = { workspace = true }
tokio = { workspace = true, features = [
"rt-multi-thread",
"macros",
], optional = true }
# subxt
subxt = { workspace = true, features = [
"substrate-compat",
"native",
"jsonrpsee",
] }
tokio = { workspace = true, features = [
"rt-multi-thread",
"macros",
], optional = true }
# substrate dependencies
codec = { workspace = true }
sp-core = { workspace = true }
sp-distance = { workspace = true }
sp-runtime = { workspace = true }
[dev-dependencies]
bincode = { workspace = true }
......
......@@ -14,7 +14,7 @@ else
ORACLE_LOG_LEVEL="${ORACLE_LOG_LEVEL:-info}"
while [ true ]; do
distance-oracle -d "$ORACLE_RESULT_DIR" -D "$ORACLE_MAX_DEPTH" -u "$ORACLE_RPC_URL" -l "$ORACLE_LOG_LEVEL"
distance-oracle --evaluation-result-dir "$ORACLE_RESULT_DIR" --rpc-url "$ORACLE_RPC_URL" --log "$ORACLE_LOG_LEVEL"
echo "Waiting $ORACLE_EXECUTION_INTERVAL seconds before next execution..."
sleep $ORACLE_EXECUTION_INTERVAL
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment