Address tracking and notification sounds.

This commit is contained in:
softsimon
2020-02-26 04:29:57 +07:00
parent 3709b652ae
commit a122432c24
13 changed files with 110 additions and 25 deletions

View File

@@ -165,13 +165,11 @@ class Server {
const foundTransactions: TransactionExtended[] = [];
transactions.forEach((tx) => {
const someVin = tx.vin.some((vin) => vin.prevout.scriptpubkey_address === client['track-address']);
if (someVin) {
if (tx.vin.some((vin) => vin.prevout.scriptpubkey_address === client['track-address'])) {
foundTransactions.push(tx);
return;
}
const someVout = tx.vout.some((vout) => vout.scriptpubkey_address === client['track-address']);
if (someVout) {
if (tx.vout.some((vout) => vout.scriptpubkey_address === client['track-address'])) {
foundTransactions.push(tx);
}
});