Test
This commit is contained in:
@@ -2693,7 +2693,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
void komodo_listunspent()
|
void komodo_listunspent()
|
||||||
{
|
{
|
||||||
set<CBitcoinAddress> setAddress; int32_t nMinDepth = 1,nMaxDepth = 9999999; vector<COutput> vecOutputs;
|
set<CBitcoinAddress> setAddress; int32_t nMinDepth = 1,nMaxDepth = 9999999; vector<COutput> vecOutputs; CTxDestination address;
|
||||||
assert(pwalletMain != NULL);
|
assert(pwalletMain != NULL);
|
||||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true);
|
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true);
|
||||||
@@ -2703,7 +2703,6 @@ void komodo_listunspent()
|
|||||||
continue;
|
continue;
|
||||||
if ( setAddress.size() )
|
if ( setAddress.size() )
|
||||||
{
|
{
|
||||||
CTxDestination address;
|
|
||||||
if (!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
|
if (!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
|
||||||
continue;
|
continue;
|
||||||
if (!setAddress.count(address))
|
if (!setAddress.count(address))
|
||||||
|
|||||||
Reference in New Issue
Block a user