Skip to content

Commit

Permalink
remove blockSDK empty tx
Browse files Browse the repository at this point in the history
  • Loading branch information
JSHan94 committed Dec 14, 2023
1 parent b23952c commit 4f34728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bots/src/lib/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class TxWallet extends Wallet {
denom
);

if (balance?.amount && parseInt(balance.amount) < 1_000_000_000) {
if (balance?.amount && parseInt(balance.amount) < 100_000_000) {
await notifySlack(
buildNotEnoughBalanceNotification(this, parseInt(balance.amount), denom)
);
Expand Down
11 changes: 1 addition & 10 deletions bots/src/worker/bridgeExecutor/Monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,7 @@ export abstract class Monitor {
);
}

// WARN: THIS SHOULD BE REMOVED AFTER MINITIA UPDATED
// every block except the first block has at least one tx (skip blockSDK).
if (
parseInt(metadata.num_txs) === 0 ||
(this.name() == 'executor_l2_monitor' &&
((this.currentHeight !== 1 &&
parseInt(metadata.num_txs) === 1) ||
(this.currentHeight === 1 &&
parseInt(metadata.num_txs) === 0)))
) {
if (parseInt(metadata.num_txs) === 0) {
await this.handleBlockWithStateUpdate(manager);
continue;
}
Expand Down

0 comments on commit 4f34728

Please sign in to comment.