From 4927aa9cf613a0f52a0fe21041b0470dd5dd913c Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Mon, 13 May 2024 10:12:26 +0900 Subject: [PATCH] feat(faucet): increase initial balance --- sn_client/src/faucet.rs | 7 +++---- sn_faucet/src/main.rs | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sn_client/src/faucet.rs b/sn_client/src/faucet.rs index 6267b5af05..4352e363ca 100644 --- a/sn_client/src/faucet.rs +++ b/sn_client/src/faucet.rs @@ -11,7 +11,7 @@ use sn_transfers::{ get_existing_genesis_wallet, load_genesis_wallet, HotWallet, MainPubkey, NanoTokens, }; -const INITIAL_FAUCET_BALANCE: NanoTokens = NanoTokens::from(10000000000); +const INITIAL_FAUCET_BALANCE: NanoTokens = NanoTokens::from(100000000000000000); /// Use the client to load the faucet wallet from the genesis Wallet. /// With all balance transferred from the genesis_wallet to the faucet_wallet. @@ -19,7 +19,6 @@ pub async fn fund_faucet_from_genesis_wallet( client: &Client, faucet_wallet: &mut HotWallet, ) -> Result<()> { - println!("funding faucet from genesis..."); info!("funding faucet from genesis..."); let faucet_balance = faucet_wallet.balance(); @@ -35,8 +34,8 @@ pub async fn fund_faucet_from_genesis_wallet( let foundation_key = MainPubkey::from_hex("a4bd3f928c585a63ab6070337316c1832bffd92be8efe9b235ec1c631f03b4bb91e29bbad34994ddf9f77d9858ddb0bb")?; // DevSkim: ignore DS117838 let (foundation_cashnote, faucet_cashnote) = { - println!("Sending {genesis_balance} from genesis to faucet wallet.."); - debug!("Sending {genesis_balance} from genesis to faucet wallet.."); + println!("Sending {INITIAL_FAUCET_BALANCE} from genesis to faucet wallet.."); + debug!("Sending {INITIAL_FAUCET_BALANCE} from genesis to faucet wallet.."); let genesis_wallet = get_existing_genesis_wallet(); println!("Faucet wallet balance: {}", faucet_wallet.balance()); diff --git a/sn_faucet/src/main.rs b/sn_faucet/src/main.rs index e9d96b529f..692503d16d 100644 --- a/sn_faucet/src/main.rs +++ b/sn_faucet/src/main.rs @@ -94,7 +94,8 @@ async fn main() -> Result<()> { fund_faucet_from_genesis_wallet(&client, &mut funded_faucet).await?; if let Err(err) = faucet_cmds(opt.cmd.clone(), &client, funded_faucet).await { - error!("Failed to run faucet cmd {:?} with err {err:?}", opt.cmd) + error!("Failed to run faucet cmd {:?} with err {err:?}", opt.cmd); + eprintln!("Failed to run faucet cmd {:?} with err {err:?}", opt.cmd); } Ok(())