sendmany::find_unspent_notes removing an unneeded recursive lock, GetFilteredNotes is already locking cs_main and cs_wallet.

This commit is contained in:
furszy 2020-11-13 10:56:39 -03:00
parent b4e6353f29
commit 2be143a20b
No known key found for this signature in database
GPG Key ID: 5DD23CCC686AA623
1 changed files with 1 additions and 4 deletions

View File

@ -920,10 +920,7 @@ bool AsyncRPCOperation_sendmany::load_inputs(TxValues& txValues) {
bool AsyncRPCOperation_sendmany::find_unspent_notes() {
std::vector<SproutNoteEntry> sproutEntries;
std::vector<SaplingNoteEntry> saplingEntries;
{
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->GetFilteredNotes(sproutEntries, saplingEntries, fromaddress_, mindepth_);
}
pwalletMain->GetFilteredNotes(sproutEntries, saplingEntries, fromaddress_, mindepth_);
// If using the TransactionBuilder, we only want Sapling notes.
// If not using it, we only want Sprout notes.