mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-25 10:09:51 +01:00
getTransfers() removes unrequested txs;
fix tx.getIsOutoging(), tx.getIsIncoming() flipped
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user