diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index d999e0d80..bf785e38c 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2693,7 +2693,7 @@ UniValue listunspent(const UniValue& params, bool fHelp) void komodo_listunspent() { - set setAddress; int32_t nMinDepth = 1,nMaxDepth = 9999999; vector vecOutputs; + set setAddress; int32_t nMinDepth = 1,nMaxDepth = 9999999; vector vecOutputs; CTxDestination address; assert(pwalletMain != NULL); LOCK2(cs_main, pwalletMain->cs_wallet); pwalletMain->AvailableCoins(vecOutputs, false, NULL, true); @@ -2703,7 +2703,6 @@ void komodo_listunspent() continue; if ( setAddress.size() ) { - CTxDestination address; if (!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address)) continue; if (!setAddress.count(address))