Skip to content

Commit

Permalink
Merge branch 'listener-refined' into symbotic-bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay111meher committed Nov 12, 2024
2 parents 14bebf5 + b39fc76 commit 6ebdcea
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions slasher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,16 @@ impl SlashingInstance {
);
let ask_id = match U256::from_dec_str(&active_request.ask_id) {
Ok(data) => data,
_ => {
Err(err) => {
log::error!("{}", err.to_string());
log::error!("Invalid Ask ID received");
continue;
}
};
let ask_state = match self.proof_marketplace.get_ask_state(ask_id).await {
Ok(data) => data,
_ => {
Err(err) => {
log::error!("{}", err.to_string());
log::error!("Failed Fetching Ask State");
continue;
}
Expand All @@ -144,9 +146,9 @@ impl SlashingInstance {
.proof_marketplace
.slash_generator(ask_id);

if cfg!(feature = "force_transactions") {
slashing_transaction = slashing_transaction.gas(10_000_000);
}
if cfg!(feature = "force_transactions") {
slashing_transaction = slashing_transaction.gas(10_000_000);
}

let slashing_transaction = match slashing_transaction.send().await {
Ok(data) => data.confirmations(10),
Expand All @@ -159,7 +161,8 @@ impl SlashingInstance {

let slashing_transaction = match slashing_transaction.await {
Ok(data) => data,
_ => {
Err(err) => {
log::error!("{}", err.to_string());
log::error!("Failed broadcasting transaction");
continue;
}
Expand Down

0 comments on commit 6ebdcea

Please sign in to comment.