From 84d72e2c68bf1ae9127edd33ff092f15c23aa2c9 Mon Sep 17 00:00:00 2001 From: rlking Date: Fri, 24 May 2024 17:48:13 +0200 Subject: [PATCH] Log if external built wasm is used --- substrate/node/src/chain_spec.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/substrate/node/src/chain_spec.rs b/substrate/node/src/chain_spec.rs index 6fa8d6c3e..3b161353f 100644 --- a/substrate/node/src/chain_spec.rs +++ b/substrate/node/src/chain_spec.rs @@ -18,7 +18,9 @@ fn account_from_name(name: &'static str) -> PublicKey { fn wasm_binary() -> Vec { // TODO: Accept a config of runtime path - if let Ok(binary) = std::fs::read("/runtime/serai.wasm") { + let wasm_path = "/runtime/serai.wasm"; + if let Ok(binary) = std::fs::read(wasm_path) { + println!("using {wasm_path}"); return binary; } WASM_BINARY.ok_or("compiled in wasm not available").unwrap().to_vec()