jl777 8 years ago
parent
commit
241f406544
  1. 4
      iguana/dpow/dpow_network.c
  2. 2
      iguana/dpow/dpow_prices.c
  3. 1
      iguana/dpow/dpow_tx.c

4
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; bp->pendingratifybestmask = bp->ratifybestmask;
dpow_signedtxgen(myinfo,dp,bp->destcoin,bp,bp->ratifybestk,bp->ratifybestmask,bp->myind,DPOW_SIGBTCCHANNEL,1,1); 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 ) if ( bp->state < 1000 )
dpow_sigscheck(myinfo,dp,bp,bp->myind,1); 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 ) if ( bp->state != 0xffffffff )
dpow_sigscheck(myinfo,dp,bp,bp->myind,0); dpow_sigscheck(myinfo,dp,bp,bp->myind,0);

2
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 ( 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); printf("{%.8f != %.8f}.%d ",output[i * 24],refvals[i],i);
spline->pricevals[i] = output[i * 24]; spline->pricevals[i] = output[i * 24];
} }

1
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); return(bestmask);
} }

Loading…
Cancel
Save