Browse Source

remote listunspent fix

release/v0.1
jl777 8 years ago
parent
commit
df4ff7ce0e
  1. 2
      iguana/iguana_peers.c
  2. 2
      iguana/iguana_wallet.c

2
iguana/iguana_peers.c

@ -746,7 +746,7 @@ void iguana_startconnection(void *arg)
if ( addr->usock < 0 || (coin->peers != 0 && coin->peers->shuttingdown != 0) )
{
strcpy(ipaddr,addr->ipaddr);
printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
//printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
iguana_iAkill(coin,addr,1);
}
else

2
iguana/iguana_wallet.c

@ -1018,7 +1018,7 @@ int64_t iguana_addressreceived(struct supernet_info *myinfo,struct iguana_info *
jaddibits256(txids,jbits256(item,"txid"));
if ( vouts != 0 )
jaddinum(vouts,jint(item,"vout"));
if ( unspents != 0 && jobj(item,"unspent") != 0 && jobj(item,"spent") == 0 && jobj(item,"dest") == 0 )
if ( unspents != 0 && jobj(item,"spent") == 0 && jobj(item,"dest") == 0 )
jaddi(unspents,jduplicate(item));
if ( spends != 0 && (jobj(item,"spent") != 0 || jobj(item,"dest") != 0) )
jaddi(spends,jduplicate(item));

Loading…
Cancel
Save