Browse Source

disable notarisation priority for non staked chains.

pull/27/head
blackjok3r 5 years ago
parent
commit
bd6949b987
  1. 9
      src/miner.cpp

9
src/miner.cpp

@ -246,9 +246,12 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
pblock->nTime = GetAdjustedTime();
// Now we have the block time, we can get the active notaries.
int32_t staked_era; int8_t numSN;
uint8_t staked_pubkeys[64][33];
staked_era = STAKED_era(pblock->nTime);
numSN = numStakedNotaries(staked_pubkeys,staked_era);
uint8_t staked_pubkeys[64][33] = {0};
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
{
staked_era = STAKED_era(pblock->nTime);
numSN = numStakedNotaries(staked_pubkeys,staked_era);
}
CCoinsViewCache view(pcoinsTip);
uint32_t expired; uint64_t commission;

Loading…
Cancel
Save