Skip to content

Commit

Permalink
rusk: update vm logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed Dec 20, 2024
1 parent e32667e commit 307909d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion rusk/src/lib/http/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ impl RuskNode {
.map_err(|e| anyhow::anyhow!("Invalid Data {e:?}"))?;
let db = self.inner().database();
let vm = self.inner().vm_handler();
MempoolSrv::check_tx(&db, &vm, &tx.into(), true, usize::MAX).await?;
MempoolSrv::check_tx(&db, &vm, &tx.into(), true, usize::MAX)
.await
.map_err(|e| {
error!("Tx {} not accepted: {e}", hex::encode(tx.id()));
e
})?;
Ok(ResponseData::new(DataType::None))
}

Expand Down
4 changes: 2 additions & 2 deletions rusk/src/lib/node/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl VMExecution for Rusk {
VerificationOutput,
Vec<ContractEvent>,
)> {
info!("Received accept request");
debug!("Received accept request");
let generator = blk.header().generator_bls_pubkey;
let generator = BlsPublicKey::from_slice(&generator.0)
.map_err(|e| anyhow::anyhow!("Error in from_slice {e:?}"))?;
Expand Down Expand Up @@ -129,7 +129,7 @@ impl VMExecution for Rusk {
commit: [u8; 32],
to_merge: Vec<[u8; 32]>,
) -> anyhow::Result<()> {
info!("Received finalize request");
debug!("Received finalize request");
self.finalize_state(commit, to_merge)
.map_err(|e| anyhow::anyhow!("Cannot finalize state: {e}"))
}
Expand Down

0 comments on commit 307909d

Please sign in to comment.