From 241f406544c1b4ee13948a48d2dd183eed16713f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 13 Nov 2016 14:55:47 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 4 ++-- iguana/dpow/dpow_prices.c | 2 +- iguana/dpow/dpow_tx.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 0eb7f44ba..7cb504b19 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -230,11 +230,11 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct bp->pendingratifybestmask = bp->ratifybestmask; dpow_signedtxgen(myinfo,dp,bp->destcoin,bp,bp->ratifybestk,bp->ratifybestmask,bp->myind,DPOW_SIGBTCCHANNEL,1,1); } - if ( bp->ratifysigmasks[0] == bp->bestmask ) // have all sigs + if ( bp->ratifysigmasks[1] == bp->bestmask ) // have all sigs { if ( bp->state < 1000 ) dpow_sigscheck(myinfo,dp,bp,bp->myind,1); - if ( bp->ratifysigmasks[1] == bp->bestmask ) // have all sigs + if ( bp->ratifysigmasks[0] == bp->bestmask ) // have all sigs { if ( bp->state != 0xffffffff ) dpow_sigscheck(myinfo,dp,bp,bp->myind,0); diff --git a/iguana/dpow/dpow_prices.c b/iguana/dpow/dpow_prices.c index 1cb208c89..ed91750b7 100755 --- a/iguana/dpow/dpow_prices.c +++ b/iguana/dpow/dpow_prices.c @@ -860,7 +860,7 @@ int32_t PAX_genspline(struct PAX_spline *spline,int32_t splineid,char *name,uint { if ( i < spline->num ) { - if ( refvals[i] != 0 && output[i * 24] != refvals[i] ) + if ( 0 && refvals[i] != 0 && output[i * 24] != refvals[i] ) printf("{%.8f != %.8f}.%d ",output[i * 24],refvals[i],i); spline->pricevals[i] = output[i * 24]; } diff --git a/iguana/dpow/dpow_tx.c b/iguana/dpow/dpow_tx.c index 19c6cb91b..233bb95da 100755 --- a/iguana/dpow/dpow_tx.c +++ b/iguana/dpow/dpow_tx.c @@ -94,6 +94,7 @@ uint64_t dpow_ratifybest(uint64_t refmask,struct dpow_block *bp,int8_t *lastkp) } } } + printf("req.%d m.%d best.(%d %llx) ",bp->require0,m,*lastkp,(long long)bestmask); return(bestmask); }