Skip to content

Commit 8e69b45

Browse files
authored
feat: enable testnet features on localnode (#101)
1 parent b73f239 commit 8e69b45

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ runtime-benchmarks = [
1313
"torus-runtime/runtime-benchmarks",
1414
"polkadot-sdk/runtime-benchmarks",
1515
]
16+
testnet = ["torus-runtime/testnet"]
1617

1718

1819
[dependencies]

pallets/faucet/src/faucet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn execute<T: crate::Config>(
5050
<frame_system::Pallet<T>>::inc_providers(&key);
5151
}
5252

53-
info!("do faucet with key: {key:?} and block number: {block_number} and nonce: {nonce}");
53+
info!("do faucet with key: {key:?} and block number: {block_number} and nonce: {nonce} and hash: {work:?}");
5454

5555
// Get the current block number for validation
5656
let current_block_number: u64 = frame_system::Pallet::<T>::block_number()

xtask/src/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub mod ops {
9898
macro_rules! torus_node {
9999
($($arg:expr),*) => {{
100100
let mut cmd = std::process::Command::new("cargo");
101-
cmd.args(["run", "--release", "--package", "torus-node", "--"]);
101+
cmd.args(["run", "--release", "--features", "testnet", "--package", "torus-node", "--"]);
102102
$(cmd.arg($arg);)*
103103
cmd
104104
}};

0 commit comments

Comments
 (0)