diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index a0f628c44..0d9930ecd 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -134,6 +134,7 @@ void iguana_dPoWupdate(struct supernet_info *myinfo) dpow_nanomsg_update(myinfo); src = iguana_coinfind(dp->symbol); dest = iguana_coinfind(dp->dest); + printf("dPoWupdate (%s -> %s)\n",dp->symbol,dp->dest); if ( src != 0 && dest != 0 ) { dp->numdesttx = sizeof(dp->desttx)/sizeof(*dp->desttx); @@ -146,7 +147,7 @@ void iguana_dPoWupdate(struct supernet_info *myinfo) if ( height == dp->destchaintip.blockhash.height && bits256_cmp(blockhash,dp->destchaintip.blockhash.hash) != 0 ) printf("UNEXPECTED ILLEGAL BLOCK in dest chaintip\n"); } else dpow_destupdate(myinfo,dp,height,blockhash,(uint32_t)time(NULL),blocktime); - } + } else printf("error getchaintip for %s\n",dp->dest); dp->numsrctx = sizeof(dp->srctx)/sizeof(*dp->srctx); if ( (height= dpow_getchaintip(myinfo,&blockhash,&blocktime,dp->srctx,&dp->numsrctx,src)) != dp->last.blockhash.height && height >= 0 ) { @@ -160,7 +161,7 @@ void iguana_dPoWupdate(struct supernet_info *myinfo) printf("UNEXPECTED ILLEGAL BLOCK in src chaintip\n"); } else dpow_srcupdate(myinfo,dp,height,blockhash,(uint32_t)time(NULL),blocktime); } else dpow_srcupdate(myinfo,dp,height,blockhash,(uint32_t)time(NULL),blocktime); - } + } else printf("error getchaintip for %s\n",dp->symbol); } else printf("iguana_dPoWupdate missing src.(%s) %p or dest.(%s) %p\n",dp->symbol,src,dp->dest,dest); }