jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
iguana/dpow/dpow_fsm.c
-
iguana/dpow/dpow_network.c
|
|
@ -250,7 +250,7 @@ bits256 dpow_calcMoM(uint32_t *MoMdepthp,struct supernet_info *myinfo,struct igu |
|
|
|
{ |
|
|
|
merkles = calloc(maxdepth,sizeof(*merkles)); |
|
|
|
merkles[MoMdepth++] = merkle; |
|
|
|
while ( MoMdepth < maxdepth ) |
|
|
|
while ( MoMdepth < maxdepth && MoMdepth < height ) |
|
|
|
{ |
|
|
|
ht = height - MoMdepth; |
|
|
|
blockhash = dpow_getblockhash(myinfo,coin,ht); |
|
|
|
|
|
@ -1873,7 +1873,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
|
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); |
|
|
|
printf("finished signing\n"); |
|
|
|
//printf("finished signing\n");
|
|
|
|
} |
|
|
|
if ( bp->destsigsmasks[bp->bestk] == bp->bestmask ) // have all sigs
|
|
|
|
{ |
|
|
|