aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-08 19:56:33 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-08 19:56:33 -0500
commit871661f3dcea7d49b9920c31fa6316e8fdfa3ad3 (patch)
tree274e93398b096f507ea124c056903c1331c77430 /src/wallet
parentMerge pull request #5842 (diff)
parentringdb: fix bug in blackballing (diff)
downloadmonero-871661f3dcea7d49b9920c31fa6316e8fdfa3ad3.tar.xz
Merge pull request #5843
9f68669 blockchain_blackball: add --historical-stat which prints historical stats of spent ratio (stoffu) 2425f27blockchain_blackball: use is_output_spent instead of ringdb.blackballed for spentness test (stoffu) 50813c1 ringdb: fix bug in blackballing (stoffu)
Diffstat (limited to 'src/wallet')
-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;