Browse Source

I think this should fix some compile issues

pull/97/head
Duke Leto 4 years ago
parent
commit
d81ab5c9c7
  1. 6
      src/wallet/asyncrpcoperation_saplingconsolidation.cpp

6
src/wallet/asyncrpcoperation_saplingconsolidation.cpp

@ -181,21 +181,21 @@ bool AsyncRPCOperation_saplingconsolidation::main_impl() {
// Add the actual consolidation tx
builder.AddSaplingOutput(extsk.expsk.ovk, addr, amountToSend - fConsolidationTxFee);
LogPrint("zrpcunsafe", "%s: Added consolidation output", getId(), addr);
LogPrint("zrpcunsafe", "%s: Added consolidation output %s", getId(), addr);
// Add sietch zouts
int MIN_ZOUTS = 7;
for(size_t i = 0; i < MIN_ZOUTS; i++) {
// In Privacy Zdust We Trust -- Duke
string zdust = randomSietchZaddr();
LogPrint("zrpcunsafe", "%s: Adding sietch output", getId(), zdust);
LogPrint("zrpcunsafe", "%s: Adding sietch output %s", getId(), zdust);
auto zaddr = DecodePaymentAddress(zdust);
if (IsValidPaymentAddress(zaddr)) {
auto sietchZoutput = boost::get<libzcash::SaplingPaymentAddress>(zaddr);
CAmount amount=0;
builder.AddSaplingOutput(extsk.expsk.ovk, sietchZoutput, amount);
} else {
LogPrint("zrpcunsafe", "%s: Invalid payment address! Stopping.", getId(), zaddr);
LogPrint("zrpcunsafe", "%s: Invalid payment address %s! Stopping.", getId(), zaddr);
break;
}
}

Loading…
Cancel
Save