Correctly link against librandomx in build

This commit is contained in:
Duke Leto
2022-02-20 11:32:09 -05:00
parent 15ca83b817
commit 35f6314123
2 changed files with 12 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ public:
};
extern int8_t ASSETCHAINS_ADAPTIVEPOW;
extern uint32_t ASSETCHAINS_RANDOMX;
void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev)
{
@@ -1025,8 +1026,9 @@ void static RandomXMiner()
miningTimer.start();
try {
if ( SMART_CHAIN_SYMBOL[0] != 0 )
fprintf(stderr,"try %s Mining with %s\n",SMART_CHAIN_SYMBOL,solver.c_str());
if ( SMART_CHAIN_SYMBOL[0] != 0 ) {
fprintf(stderr,"trying %s Mining with randomx\n",SMART_CHAIN_SYMBOL);
}
while (true)
{
if (chainparams.MiningRequiresPeers()) {
@@ -1109,7 +1111,7 @@ void static RandomXMiner()
}
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
//fprintf(stderr,"Running HushMiner.%s with %u transactions in block\n",solver.c_str(),(int32_t)pblock->vtx.size());
LogPrintf("Running HushRandomXMiner with %u transactions in block (%u bytes)\n",,pblock->vtx.size(),::GetSerializeSize(*pblock,SER_NETWORK,PROTOCOL_VERSION));
LogPrintf("Running HushRandomXMiner with %u transactions in block (%u bytes)\n",pblock->vtx.size(),::GetSerializeSize(*pblock,SER_NETWORK,PROTOCOL_VERSION));
// Search
uint8_t pubkeys[66][33]; arith_uint256 bnMaxPoSdiff; uint32_t blocktimes[66]; int mids[256],nonzpkeys,i,j,externalflag; uint32_t savebits; int64_t nStart = GetTime();