diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index a6eb17b7e..18b5d9b3b 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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); diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 598f0fd42..df283540b 100755 --- a/iguana/dpow/dpow_network.c +++ b/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 {