getTransfers() removes unrequested txs;

fix tx.getIsOutoging(), tx.getIsIncoming() flipped
This commit is contained in:
woodser
2019-06-26 15:49:35 -04:00
parent 29c8e628a7
commit c6ad55c340
2 changed files with 9 additions and 7 deletions
+3 -4
View File
@@ -63,11 +63,11 @@ namespace monero {
return node;
}
bool MoneroTxWallet::getIsIncoming() const {
bool MoneroTxWallet::getIsOutgoing() const {
return outgoingTransfer != boost::none;
}
bool MoneroTxWallet::getIsOutgoing() const {
bool MoneroTxWallet::getIsIncoming() const {
return !incomingTransfers.empty();
}
@@ -153,8 +153,7 @@ namespace monero {
// filter on outgoing
if (isOutgoing != boost::none) {
if (*isOutgoing && !tx->getIsOutgoing()) return false;
if (!*isOutgoing && tx->getIsOutgoing()) return false;
if (isOutgoing.get() != tx->getIsOutgoing()) return false;
}
//cout << "6" << endl;