aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2019-08-22 10:53:21 +0900
committerstoffu <stoffu@protonmail.ch>2019-08-22 21:34:48 +0900
commit50813c103ece22f9873c9f16e08b42170ff2599f (patch)
tree07b30e96263734508fa313b5369a85c3e140eace /src
parentblockchain_blackball: use is_output_spent instead of ringdb.blackballed for s... (diff)
downloadmonero-50813c103ece22f9873c9f16e08b42170ff2599f.tar.xz
ringdb: fix bug in blackballing
Diffstat (limited to 'src')
-rw-r--r--src/wallet/ringdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/ringdb.cpp b/src/wallet/ringdb.cpp
index 8da95de7b..b7efdd75c 100644
--- a/src/wallet/ringdb.cpp
+++ b/src/wallet/ringdb.cpp
@@ -424,7 +424,7 @@ bool ringdb::blackball_worker(const std::vector<std::pair<uint64_t, uint64_t>> &
{
case BLACKBALL_BLACKBALL:
MDEBUG("Marking output " << output.first << "/" << output.second << " as spent");
- dbr = mdb_cursor_put(cursor, &key, &data, MDB_APPENDDUP);
+ dbr = mdb_cursor_put(cursor, &key, &data, MDB_NODUPDATA);
if (dbr == MDB_KEYEXIST)
dbr = 0;
break;