Browse Source

Remove redundant pwallet nullptr check

0.16
Matt Corallo 7 years ago
parent
commit
89f03120a0
  1. 1
      src/wallet/rpcwallet.cpp

1
src/wallet/rpcwallet.cpp

@ -2895,7 +2895,6 @@ UniValue listunspent(const JSONRPCRequest& request) @@ -2895,7 +2895,6 @@ UniValue listunspent(const JSONRPCRequest& request)
UniValue results(UniValue::VARR);
std::vector<COutput> vecOutputs;
assert(pwallet != nullptr);
LOCK2(cs_main, pwallet->cs_wallet);
pwallet->AvailableCoins(vecOutputs, !include_unsafe, nullptr, nMinimumAmount, nMaximumAmount, nMinimumSumAmount, nMaximumCount, nMinDepth, nMaxDepth);

Loading…
Cancel
Save