This commit is contained in:
Duke Leto
2019-11-05 06:54:42 -05:00
parent b40a4e9c82
commit 5b29c7cd71
3 changed files with 19 additions and 1 deletions

View File

@@ -4533,6 +4533,18 @@ UniValue z_sendmany(const UniValue& params, bool fHelp)
nTotalOut += nAmount;
}
// Byrsa: Add some magic privacy zdust
unsigned int MIN_ZOUTS=7;
while (zaddrRecipients.size() < MIN_ZOUTS) {
int nAmount = 0;
string memo = "f600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
// TODO: options for address: hardcoded or randomized, unspendable or valid
// We will send various amount=0 to this wallet if our amount of zdust
// is below threshold, otherwise to unspendable or fixed out-of-wallet zaddrs
string address = "zs1aq4xnrkjlnxx0zesqye7jz3dfrf3rjh7q5z6u8l6mwyqqaam3gx3j2fkqakp33v93yavq46j83q"; // duke donation zaddr
zaddrRecipients.push_back( SendManyRecipient(address, nAmount, memo) );
}
int nextBlockHeight = chainActive.Height() + 1;
CMutableTransaction mtx;