Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
c6d212db1c
  1. 5
      src/komodo_bitcoind.h

5
src/komodo_bitcoind.h

@ -1298,7 +1298,7 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he
continue;
if ( (pindex= komodo_chainactive(ht)) != 0 )
{
if ( komodo_segid(0,ht) >= 0 ) // if using segid cache is unstable consensus, need to directly call komodo_stake() here
if ( komodo_segid(0,ht) >= 0 )
{
n++;
percPoS++;
@ -1422,7 +1422,10 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_
if ( pindex != 0 && height > 100 )
{
if ( pindex->segid == -2 )
{
pindex->segid = komodo_segid(1,height);
fprintf(stderr,"set segid.%d <- %d\n",pindex->segid);
}
} else fprintf(stderr,"unexpected null pindex for slowflag set ht.%d\n",height);
}
}

Loading…
Cancel
Save