Skip to content

Commit

Permalink
chore: clippy/fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Jan 4, 2023
1 parent 7bd9653 commit 75e8d35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/src/lib/client/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ pub async fn sign_wrapper(
// If the address derived from the keypair doesn't have enough balance
// to pay for the fee, allow to find a PoW solution instead.
if requires_pow || balance < fee_amount {
println!("The transaction requires the completion of a PoW challenge.");
println!(
"The transaction requires the completion of a PoW challenge."
);
// Obtain a PoW challenge for faucet withdrawal
let challenge = rpc::get_testnet_pow_challenge(
source,
Expand Down
9 changes: 7 additions & 2 deletions apps/src/lib/node/ledger/shell/finalize_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ where
{
Ok(result) => {
if result.is_accepted() {
tracing::info!(
tracing::trace!(
"all VPs accepted transaction {} storage \
modification {:#?}",
tx_event["hash"],
Expand Down Expand Up @@ -298,7 +298,7 @@ where
}
}
} else {
tracing::info!(
tracing::trace!(
"some VPs rejected transaction {} storage \
modification {:#?}",
tx_event["hash"],
Expand Down Expand Up @@ -327,6 +327,11 @@ where
}
response.events.push(tx_event);
}
tracing::info!(
"Applied {} txs at height {}",
response.events.len(),
self.storage.last_height
);

if new_epoch {
self.update_epoch(&mut response);
Expand Down

0 comments on commit 75e8d35

Please sign in to comment.