jl777 7 years ago
parent
commit
01d2818c05
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_network.c

2
iguana/dpow/dpow_fsm.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);

2
iguana/dpow/dpow_network.c

@ -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
{

Loading…
Cancel
Save