Add counterparty option to getTransactions

This commit is contained in:
Chris Clark
2015-07-09 13:46:12 -07:00
parent 1068b68568
commit 941aaf6d8b
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ function transactionFilter(address, filters, tx) {
if (filters.incoming && tx.address === address) {
return false;
}
if (filters.counterparty && tx.address !== filters.counterparty
&& tx.Destination !== filters.counterparty) {
return false;
}
return true;
}