remove prints and fix utxo counter in wrong place
This commit is contained in:
@@ -4352,22 +4352,20 @@ UniValue z_mergetoaddress(const UniValue& params, bool fHelp)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
utxoCounter++;
|
|
||||||
CAmount nValue = out.tx->vout[out.i].nValue;
|
CAmount nValue = out.tx->vout[out.i].nValue;
|
||||||
|
|
||||||
if (maximum_utxo_size != 0) {
|
if (maximum_utxo_size != 0) {
|
||||||
//printf("maximum utxo size = %ld \n", maximum_utxo_size);
|
|
||||||
if (nValue > maximum_utxo_size) {
|
if (nValue > maximum_utxo_size) {
|
||||||
printf("nValue = %ld which is over maximum size so we will ignore it!\n", nValue);
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
if (out.tx->vout[out.i].scriptPubKey.size() == 35) {
|
if (out.tx->vout[out.i].scriptPubKey.size() == 35) {
|
||||||
printf("utxo is an iguana utxo so we will ingore it!\n");
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utxoCounter++;
|
||||||
|
|
||||||
if (!maxedOutUTXOsFlag) {
|
if (!maxedOutUTXOsFlag) {
|
||||||
CBitcoinAddress ba(address);
|
CBitcoinAddress ba(address);
|
||||||
size_t increase = (ba.IsScript()) ? CTXIN_SPEND_P2SH_SIZE : CTXIN_SPEND_DUST_SIZE;
|
size_t increase = (ba.IsScript()) ? CTXIN_SPEND_P2SH_SIZE : CTXIN_SPEND_DUST_SIZE;
|
||||||
|
|||||||
Reference in New Issue
Block a user