Skip to content

Commit

Permalink
remove toolbar state in gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Aug 11, 2024
1 parent e97e2bf commit 37779af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gateway/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ impl Gateway {
let mut tx = Transaction::new_with_payer(final_ixs.as_slice(), Some(&signer.pubkey()));

// Submit tx
let mut toolbar_state = use_miner_toolbar_state();
// let mut toolbar_state = use_miner_toolbar_state();
let mut attempts = 0;
loop {
log::info!("Attempt: {:?}", attempts);
toolbar_state.set_status_message(MinerStatusMessage::Submitting(attempts as u64, fee));
// toolbar_state.set_status_message(MinerStatusMessage::Submitting(attempts as u64, fee));
// Sign tx with a new blockhash (after approximately ~45 sec)
if attempts % 10 == 0 {
// Reset the compute unit price
Expand All @@ -286,8 +286,8 @@ impl Gateway {
fee
};

toolbar_state
.set_status_message(MinerStatusMessage::Submitting(attempts as u64, fee));
// toolbar_state
// .set_status_message(MinerStatusMessage::Submitting(attempts as u64, fee));

final_ixs.remove(1);
final_ixs.insert(1, ComputeBudgetInstruction::set_compute_unit_price(fee));
Expand Down

0 comments on commit 37779af

Please sign in to comment.