Change is_STAKED so that chains with a BR are 1 and chains with none are 2. Chains that are 255 are banned, and no notarisations can happen.

This commit is contained in:
blackjok3r
2019-01-25 19:14:22 +08:00
parent 04f7f39d23
commit 4bda6bcac4
3 changed files with 8 additions and 6 deletions

View File

@@ -44,6 +44,9 @@ NotarisationsInBlock ScanBlockNotarisations(const CBlock &block, int nHeight)
if (staked_era == 0) {
// this is an ERA GAP, so we will ignore this notarization
continue;
if ( is_STAKED(data.symbol) == 255 )
// this chain is banned... we will discard its notarisation.
continue;
} else {
// pass era slection off to notaries_staked.cpp file
auth_STAKED = Choose_auth_STAKED(staked_era);