Skip to content

Commit

Permalink
Fixes --pegin --pegout logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Mar 2, 2023
1 parent 1aa75ed commit 3ec320d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/live-monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ async function monitor() {
} else if(!params.pegout && (params.pegin && !isPeginRelated)) {
continue;
// Requested only pegins and pegouts, if tx is not a pegin or pegout then return
} else if((params.pegin && !isPeginRelated) || (params.pegout && !isPegoutRelated)) {
} else if((params.pegin && params.pegout) && (!isPeginRelated && !isPegoutRelated)) {
continue;
}

// Showing all bridge events by default if params.pegin and params.pegout where not specified

const rskTx = await getBridgeTransactionByTxHash(web3Client, transaction.hash);
Expand Down

0 comments on commit 3ec320d

Please sign in to comment.