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"] ...@@ -27,26 +27,31 @@ try-runtime = ["sp-distance/try-runtime", "sp-runtime/try-runtime"]
runtime-benchmarks = [] runtime-benchmarks = []
[dependencies] [dependencies]
# crates.io dependencies
log = { workspace = true }
simple_logger = { workspace = true }
clap = { workspace = true, features = ["derive"], optional = true } clap = { workspace = true, features = ["derive"], optional = true }
codec = { workspace = true }
fnv = { workspace = true } fnv = { workspace = true }
hex = { workspace = true } hex = { workspace = true }
log = { workspace = true }
num-traits = { workspace = true } num-traits = { workspace = true }
rayon = { workspace = true } rayon = { workspace = true }
simple_logger = { workspace = true } tokio = { workspace = true, features = [
sp-core = { workspace = true } "rt-multi-thread",
sp-distance = { workspace = true } "macros",
sp-runtime = { workspace = true } ], optional = true }
# subxt
subxt = { workspace = true, features = [ subxt = { workspace = true, features = [
"substrate-compat", "substrate-compat",
"native", "native",
"jsonrpsee", "jsonrpsee",
] } ] }
tokio = { workspace = true, features = [
"rt-multi-thread", # substrate dependencies
"macros", codec = { workspace = true }
], optional = true } sp-core = { workspace = true }
sp-distance = { workspace = true }
sp-runtime = { workspace = true }
[dev-dependencies] [dev-dependencies]
bincode = { workspace = true } bincode = { workspace = true }
......
...@@ -14,7 +14,7 @@ else ...@@ -14,7 +14,7 @@ else
ORACLE_LOG_LEVEL="${ORACLE_LOG_LEVEL:-info}" ORACLE_LOG_LEVEL="${ORACLE_LOG_LEVEL:-info}"
while [ true ]; do 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..." echo "Waiting $ORACLE_EXECUTION_INTERVAL seconds before next execution..."
sleep $ORACLE_EXECUTION_INTERVAL sleep $ORACLE_EXECUTION_INTERVAL
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment