Merge pull request #620

15d9ac8 wallet2: update spent comparison now that we have two spent states (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-01-25 19:38:14 +02:00
commit 96d0c0373e
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1429,7 +1429,7 @@ void wallet2::rescan_spent()
{
LOG_PRINT_L0("Marking output " << i << "(" << td.m_key_image << ") as spent, it was marked as unspent");
}
td.m_spent = daemon_resp.spent_status[i];
td.m_spent = daemon_resp.spent_status[i] != COMMAND_RPC_IS_KEY_IMAGE_SPENT::UNSPENT;
}
}
}