From f6a3cd1a18a74f38426ea05cf2319369966532a5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Dec 2018 01:13:59 -1100 Subject: [PATCH] Randomize zmigrate size 100/1000/10000 --- src/cc/dapps/zmigrate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cc/dapps/zmigrate.c b/src/cc/dapps/zmigrate.c index 4b29bebaf..2a6249110 100644 --- a/src/cc/dapps/zmigrate.c +++ b/src/cc/dapps/zmigrate.c @@ -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 )