This commit is contained in:
jl777
2016-11-06 13:51:04 -03:00
parent f4b4233030
commit a8323aa63f
2 changed files with 2 additions and 2 deletions

View File

@@ -368,7 +368,7 @@ uint64_t komodo_seed(int32_t height)
if ( pindex != 0 ) if ( pindex != 0 )
{ {
hash = pindex->GetBlockHash(); hash = pindex->GetBlockHash();
seed = hash.GetLow64(); seed = arith_uint256(hash).GetLow64();
} }
return(seed); return(seed);
} }

View File

@@ -393,7 +393,7 @@ uint64_t komodo_paxprice(int32_t height,char *base,char *rel,uint64_t basevolume
} }
sum /= densum; sum /= densum;
sum = (sum * basevolume) / COIN; sum = (sum * basevolume) / COIN;
printf("sum %.8f densum %.8f basevol %.8f\n",dstr(sum),dstr(densum),dstr(basevolume)); printf("seed.%llx sum %.8f densum %.8f basevol %.8f\n",(long long)seed,dstr(sum),dstr(densum),dstr(basevolume));
break; break;
} }
} }