From 007fca33737b76d59afb87883bff08b7f1bf73f3 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 7 Mar 2019 18:39:45 +0800 Subject: [PATCH] better --- iguana/dpow/dpow_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 5bb2efd38..575bfcb14 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -628,7 +628,7 @@ void dpow_statemachinestart(void *ptr) int8_t send_dest = 0, send_src = 0; char rettx[32768] = {0}; if ( firstloop == 0 ) { - sleep(60); // wait 60s on the first round, to prevent spamming transactions when not needed. + sleep((rand() % (120 - 60)) + 60); firstloop = 1; } // random sleep here so all nodes are checking/rebroadcasting at diffrent times.