diff --git a/bots/src/test/utils/TxBot.ts b/bots/src/test/utils/TxBot.ts index 306fbf7b..36a95692 100644 --- a/bots/src/test/utils/TxBot.ts +++ b/bots/src/test/utils/TxBot.ts @@ -18,7 +18,7 @@ export class TxBot { new MnemonicKey({ mnemonic: // init1wzenw7r2t2ra39k4l9yqq95pw55ap4sm4vsa9g - 'diamond donkey opinion claw cool harbor tree elegant outer mother claw amount message result leave tank plunge harbor garment purity arrest humble figure endless' + '' }) ); @@ -27,23 +27,21 @@ export class TxBot { new MnemonicKey({ mnemonic: // init174knscjg688ddtxj8smyjz073r3w5mmsp3m0m2 - 'cheap start amused certain dune unique diet enemy surround total grab item reduce engage office brain border liar eagle random unknown avoid chapter report' + '' }) ); l2sender = new Wallet( config.l2lcd, new MnemonicKey({ - mnemonic: - 'diamond donkey opinion claw cool harbor tree elegant outer mother claw amount message result leave tank plunge harbor garment purity arrest humble figure endless' + mnemonic: '' }) ); l2receiver = new Wallet( config.l2lcd, new MnemonicKey({ - mnemonic: - 'cheap start amused certain dune unique diet enemy surround total grab item reduce engage office brain border liar eagle random unknown avoid chapter report' + mnemonic: '' }) ); diff --git a/bots/src/worker/bridgeExecutor/L1Monitor.ts b/bots/src/worker/bridgeExecutor/L1Monitor.ts index 52e29f21..7e26fe99 100644 --- a/bots/src/worker/bridgeExecutor/L1Monitor.ts +++ b/bots/src/worker/bridgeExecutor/L1Monitor.ts @@ -11,7 +11,6 @@ import { getDB } from './db'; import winston from 'winston'; import { getConfig } from 'config'; import { TxWallet, WalletType, getWallet, initWallet } from 'lib/wallet'; -import { getBalanceByDenom } from 'lib/query'; const config = getConfig(); diff --git a/bots/src/worker/bridgeExecutor/Monitor.ts b/bots/src/worker/bridgeExecutor/Monitor.ts index ca9aa31d..45a2f247 100644 --- a/bots/src/worker/bridgeExecutor/Monitor.ts +++ b/bots/src/worker/bridgeExecutor/Monitor.ts @@ -85,10 +85,15 @@ 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 ( - (this.currentHeight !== 1 && parseInt(metadata.num_txs) === 1) || - (this.currentHeight === 1 && parseInt(metadata.num_txs) === 0) + 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))) ) { await this.handleBlockWithStateUpdate(manager); continue;