Randomize zmigrate size 100/1000/10000

This commit is contained in:
jl777
2018-12-15 01:13:59 -11:00
parent 77557116e7
commit f6a3cd1a18

View File

@@ -931,6 +931,12 @@ again:
if ( (amount= find_sprout_amount(coinstr,zcaddr)) > txfee )
{
// generate taddr, send max of 10000.0001
switch ( (rand() % 3) )
{
case 0: stdamount = 100 * SATOSHIDEN; break;
case 1: stdamount = 1000 * SATOSHIDEN; break;
case 2: stdamount = 10000 * SATOSHIDEN; break;
}
if ( amount > stdamount+txfee )
amount = stdamount + txfee;
if ( getnewaddress(coinaddr,coinstr,"") == 0 )