diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
commit | e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08 (patch) | |
tree | 134d499069659c6bbbfd372d32d45a93ea718184 /src/blockchain_utilities | |
parent | Merge pull request #5473 (diff) | |
parent | remove unused code (diff) | |
download | monero-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.xz |
Merge pull request #5502
25a7cfd add a few checks where it seems appropriate (moneromooo-monero)
1a66a86 remove unused code (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities')
-rw-r--r-- | src/blockchain_utilities/blockchain_blackball.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_blackball.cpp b/src/blockchain_utilities/blockchain_blackball.cpp index 6ff184041..f824d93a6 100644 --- a/src/blockchain_utilities/blockchain_blackball.cpp +++ b/src/blockchain_utilities/blockchain_blackball.cpp @@ -637,6 +637,7 @@ static void inc_per_amount_outputs(MDB_txn *txn, uint64_t amount, uint64_t total v.mv_size = 2 * sizeof(uint64_t); v.mv_data = (void*)data; dbr = mdb_cursor_put(cur, &k, &v, 0); + CHECK_AND_ASSERT_THROW_MES(!dbr, "Failed to write record for per amount outputs: " + std::string(mdb_strerror(dbr))); mdb_cursor_close(cur); } |