From 0332f11f5b827672114327cc8e452fd9ca44b7f1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 16 Nov 2016 16:55:28 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_tx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_tx.c b/iguana/dpow/dpow_tx.c index de0acbf47..ee0d366f9 100755 --- a/iguana/dpow/dpow_tx.c +++ b/iguana/dpow/dpow_tx.c @@ -82,9 +82,11 @@ uint64_t dpow_ratifybest(uint64_t refmask,struct dpow_block *bp,int8_t *lastkp) *lastkp = -1; if ( (m= bp->require0) != 0 ) mask = 1; - for (j=m; jnumnotaries; j++) + for (j=0; jnumnotaries; j++) { k = (j + ((uint32_t)time(NULL) / 100)) % bp->numnotaries;//DPOW_MODIND(bp,j); + if ( bp->require0 != 0 && k == 0 ) + continue; if ( bits256_nonz(bp->notaries[k].ratifysrcutxo) != 0 && bits256_nonz(bp->notaries[k].ratifydestutxo) != 0 ) { mask |= (1LL << k);