diff options
author | stoffu <stoffu@protonmail.ch> | 2019-08-22 10:53:21 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2019-08-22 21:34:48 +0900 |
commit | 50813c103ece22f9873c9f16e08b42170ff2599f (patch) | |
tree | 07b30e96263734508fa313b5369a85c3e140eace /src | |
parent | blockchain_blackball: use is_output_spent instead of ringdb.blackballed for s... (diff) | |
download | monero-50813c103ece22f9873c9f16e08b42170ff2599f.tar.xz |
ringdb: fix bug in blackballing
Diffstat (limited to '')
-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; |