|
|
@ -283,24 +283,18 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
|
{ |
|
|
|
if ( bp->pendingbestk != bp->bestk || bp->pendingbestmask != bp->bestmask ) |
|
|
|
{ |
|
|
|
printf("new PENDING BESTK (%d %llx)\n",bp->bestk,(long long)bp->bestmask); |
|
|
|
printf("new PENDING BESTK (%d %llx) state.%d\n",bp->bestk,(long long)bp->bestmask,bp->state); |
|
|
|
bp->pendingbestk = bp->bestk; |
|
|
|
bp->pendingbestmask = bp->bestmask; |
|
|
|
dpow_signedtxgen(myinfo,dp,bp->destcoin,bp,bp->bestk,bp->bestmask,bp->myind,DPOW_SIGBTCCHANNEL,1,0); |
|
|
|
if ( bp->destsigsmasks[bp->bestk] == bp->bestmask ) // have all sigs
|
|
|
|
{ |
|
|
|
if ( bp->state < 1000 ) |
|
|
|
{ |
|
|
|
dpow_sigscheck(myinfo,dp,bp,bp->myind,1); |
|
|
|
bp->state = 1000; |
|
|
|
} |
|
|
|
if ( bp->srcsigsmasks[bp->bestk] == bp->bestmask ) // have all sigs
|
|
|
|
{ |
|
|
|
if ( bp->state != 0xffffffff ) |
|
|
|
{ |
|
|
|
dpow_sigscheck(myinfo,dp,bp,bp->myind,0); |
|
|
|
bp->state = 0xffffffff; |
|
|
|
} |
|
|
|
} else printf("srcmask.%llx != bestmask.%llx\n",(long long)bp->srcsigsmasks[bp->bestk],(long long)bp->bestmask); |
|
|
|
} else printf("destmask.%llx != bestmask.%llx\n",(long long)bp->destsigsmasks[bp->bestk],(long long)bp->bestmask); |
|
|
|
} |
|
|
|