We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c05db commit faebf1dCopy full SHA for faebf1d
src/wallet/walletdb.cpp
@@ -1401,13 +1401,13 @@ bool WalletBatch::EraseRecords(const std::unordered_set<std::string>& types)
1401
}
1402
1403
// Make a copy of key to avoid data being deleted by the following read of the type
1404
- Span key_data{key};
+ const SerializeData key_data{key.begin(), key.end()};
1405
1406
std::string type;
1407
key >> type;
1408
1409
if (types.count(type) > 0) {
1410
- if (!m_batch->Erase(key_data)) {
+ if (!m_batch->Erase(Span{key_data})) {
1411
cursor.reset(nullptr);
1412
m_batch->TxnAbort();
1413
return false; // erase failed
0 commit comments