mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-26 02:04:05 +01:00
txRequest meetsCriteria isIncoming/isOutgoing cleanup;
getTxs() erases unrequested txs
This commit is contained in:
@@ -145,15 +145,14 @@ namespace monero {
|
||||
|
||||
// filter on incoming
|
||||
if (isIncoming != boost::none) {
|
||||
if (*isIncoming && !tx->getIsIncoming()) return false;
|
||||
if (!*isIncoming && tx->getIsIncoming()) return false;
|
||||
if (isIncoming != tx->getIsIncoming()) return false;
|
||||
}
|
||||
|
||||
//cout << "5" << endl;
|
||||
|
||||
// filter on outgoing
|
||||
if (isOutgoing != boost::none) {
|
||||
if (isOutgoing.get() != tx->getIsOutgoing()) return false;
|
||||
if (isOutgoing != tx->getIsOutgoing()) return false;
|
||||
}
|
||||
|
||||
//cout << "6" << endl;
|
||||
|
||||
Reference in New Issue
Block a user