Skip to content

Commit

Permalink
Remove redundant pwallet nullptr check
Browse files Browse the repository at this point in the history
zcash: cherry picked from commit 89f0312
zcash: bitcoin/bitcoin#10286
  • Loading branch information
TheBlueMatt authored and LarryRuane committed Apr 12, 2021
1 parent 756a33a commit 3145dce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,6 @@ UniValue listunspent(const UniValue& params, bool fHelp)

UniValue results(UniValue::VARR);
vector<COutput> vecOutputs;
assert(pwalletMain != NULL);
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true);
for (const COutput& out : vecOutputs) {
Expand Down

0 comments on commit 3145dce

Please sign in to comment.