diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 19:56:33 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 19:56:33 -0500 |
commit | 871661f3dcea7d49b9920c31fa6316e8fdfa3ad3 (patch) | |
tree | 274e93398b096f507ea124c056903c1331c77430 /src/wallet | |
parent | Merge pull request #5842 (diff) | |
parent | ringdb: fix bug in blackballing (diff) | |
download | monero-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.cpp | 2 |
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; |