disable notarisation priority for non staked chains.
This commit is contained in:
@@ -246,9 +246,12 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
|||||||
pblock->nTime = GetAdjustedTime();
|
pblock->nTime = GetAdjustedTime();
|
||||||
// Now we have the block time, we can get the active notaries.
|
// Now we have the block time, we can get the active notaries.
|
||||||
int32_t staked_era; int8_t numSN;
|
int32_t staked_era; int8_t numSN;
|
||||||
uint8_t staked_pubkeys[64][33];
|
uint8_t staked_pubkeys[64][33] = {0};
|
||||||
staked_era = STAKED_era(pblock->nTime);
|
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
|
||||||
numSN = numStakedNotaries(staked_pubkeys,staked_era);
|
{
|
||||||
|
staked_era = STAKED_era(pblock->nTime);
|
||||||
|
numSN = numStakedNotaries(staked_pubkeys,staked_era);
|
||||||
|
}
|
||||||
|
|
||||||
CCoinsViewCache view(pcoinsTip);
|
CCoinsViewCache view(pcoinsTip);
|
||||||
uint32_t expired; uint64_t commission;
|
uint32_t expired; uint64_t commission;
|
||||||
|
|||||||
Reference in New Issue
Block a user