Skip to content

Commit

Permalink
remove mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
JSHan94 committed Dec 13, 2023
1 parent 59a7b95 commit ddb436d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 4 additions & 6 deletions bots/src/test/utils/TxBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
''
})
);

Expand All @@ -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: ''
})
);

Expand Down
1 change: 0 additions & 1 deletion bots/src/worker/bridgeExecutor/L1Monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
9 changes: 7 additions & 2 deletions bots/src/worker/bridgeExecutor/Monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddb436d

Please sign in to comment.