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

fix distance oracle entrypoint

- update entrypoint with correct arg
- remove max depth
parent 7e75570b
No related branches found
No related tags found
No related merge requests found
Pipeline #36134 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 }
......
...@@ -9,12 +9,11 @@ if [ "$1" = -- ]; then ...@@ -9,12 +9,11 @@ if [ "$1" = -- ]; then
else else
ORACLE_RESULT_DIR="${ORACLE_RESULT_DIR:-/distance}" ORACLE_RESULT_DIR="${ORACLE_RESULT_DIR:-/distance}"
ORACLE_EXECUTION_INTERVAL="${ORACLE_EXECUTION_INTERVAL:-1800}" ORACLE_EXECUTION_INTERVAL="${ORACLE_EXECUTION_INTERVAL:-1800}"
ORACLE_MAX_DEPTH="${ORACLE_MAX_DEPTH:-5}"
ORACLE_RPC_URL="${ORACLE_RPC_URL:-ws://127.0.0.1:9944}" ORACLE_RPC_URL="${ORACLE_RPC_URL:-ws://127.0.0.1:9944}"
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.
Finish editing this message first!
Please register or to comment