This commit is contained in:
jl777
2018-04-10 20:38:12 +03:00
parent 409c28a2e2
commit 007aca381b
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ int base_uint<BITS>::CompareTo(const base_uint<BITS>& b) const
{ {
if ( (uint64_t)pn < 0x1000 || (uint64_t)b.pn <= 0x1000 ) if ( (uint64_t)pn < 0x1000 || (uint64_t)b.pn <= 0x1000 )
{ {
fprintf(stderr,"CompareTo null %p or %p\n",pn,b.pn); //fprintf(stderr,"CompareTo null %p or %p\n",pn,b.pn);
return(0); return(0);
} }
for (int i = WIDTH - 1; i >= 0; i--) { for (int i = WIDTH - 1; i >= 0; i--) {

View File

@@ -876,7 +876,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block,uint32_t prevtim
eligible = komodo_stake(bnTarget,height,block.vtx[txn_count-1].vin[0].prevout.hash,block.vtx[txn_count-1].vin[0].prevout.n,block.nTime,prevtime,(char *)""); eligible = komodo_stake(bnTarget,height,block.vtx[txn_count-1].vin[0].prevout.hash,block.vtx[txn_count-1].vin[0].prevout.n,block.nTime,prevtime,(char *)"");
if ( eligible == 0 || eligible > block.nTime ) if ( eligible == 0 || eligible > block.nTime )
{ {
fprintf(stderr,"PoS failure ht.%d eligible.%u vs blocktime.%u, lag.%d\n",height,eligible,(uint32_t)block.nTime,(int32_t)(eligible - block.nTime)); fprintf(stderr,"PoS failure ht.%d eligible.%u vs blocktime.%u, lag.%d -> check to see if it is PoW block\n",height,eligible,(uint32_t)block.nTime,(int32_t)(eligible - block.nTime));
} else isPoS = 1; } else isPoS = 1;
} }
if ( isPoS == 0 && height > 100 ) if ( isPoS == 0 && height > 100 )