Skip to content

Commit

Permalink
Log if external built wasm is used
Browse files Browse the repository at this point in the history
  • Loading branch information
rlking committed May 24, 2024
1 parent 2942122 commit 84d72e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substrate/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ fn account_from_name(name: &'static str) -> PublicKey {

fn wasm_binary() -> Vec<u8> {
// 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()
Expand Down

0 comments on commit 84d72e2

Please sign in to comment.