Browse Source
Merge pull request #687 from jl777/jl777
-print and ensure every 100 blocks notarization
patch-3
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
|
|
@ -539,7 +539,7 @@ void dpow_statemachinestart(void *ptr) |
|
|
|
bp->myind = myind; |
|
|
|
while ( bp->isratify == 0 && dp->destupdated == 0 ) |
|
|
|
{ |
|
|
|
if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height ) |
|
|
|
if ( (checkpoint.blockhash.height % 100) != 0 && dp->checkpoint.blockhash.height > checkpoint.blockhash.height ) |
|
|
|
{ |
|
|
|
printf("abort %s ht.%d due to new checkpoint.%d\n",dp->symbol,checkpoint.blockhash.height,dp->checkpoint.blockhash.height); |
|
|
|
dp->ratifying -= bp->isratify; |
|
|
|
|
|
@ -1901,7 +1901,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
|
printf("mypaxcrc.%x\n",bp->paxwdcrc); |
|
|
|
} |
|
|
|
char str[65]; |
|
|
|
if ( (rand() % 130) == 0 || strcmp(dp->symbol,"BEER") == 0 ) |
|
|
|
if ( (rand() % 130) == 0 )//|| strcmp(dp->symbol,"CHIPS") == 0 )
|
|
|
|
printf("%p ht.%d [%d] ips.%d %s NOTARIZE.%d matches.%d paxmatches.%d bestmatches.%d bestk.%d %llx recv.%llx sigmasks.(%llx %llx) senderind.%d state.%x (%x %x %x) MoM.%s [%d]\n",bp,bp->height,bp->myind,dp->numipbits,dp->symbol,bp->minsigs,matches,paxmatches,bestmatches,bp->bestk,(long long)bp->bestmask,(long long)bp->recvmask,(long long)(bp->bestk>=0?bp->destsigsmasks[bp->bestk]:0),(long long)(bp->bestk>=0?bp->srcsigsmasks[bp->bestk]:0),senderind,bp->state,bp->hashmsg.uints[0],bp->desttxid.uints[0],bp->srctxid.uints[0],bits256_str(str,bp->MoM),bp->MoMdepth); |
|
|
|
} |
|
|
|
} |
|
|
|