ringdb: allow blackballing many outputs at once

It cuts down on txn commits, and speeds up blackballing substantially
This commit is contained in:
moneromooo-monero
2018-08-12 21:41:44 +00:00
parent fad88e18a9
commit 50cb370d5b
4 changed files with 77 additions and 45 deletions
+1 -2
View File
@@ -6238,8 +6238,7 @@ bool wallet2::set_blackballed_outputs(const std::vector<crypto::public_key> &out
bool ret = true;
if (!add)
ret &= m_ringdb->clear_blackballs();
for (const auto &output: outputs)
ret &= m_ringdb->blackball(output);
ret &= m_ringdb->blackball(outputs);
return ret;
}
catch (const std::exception &e) { return false; }