# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NOTE: Sort By Default
When sorting is done by default, it is slashed and is sorted to the end.
NOTE: These are sorted by priority that will be removed
When sorting is done by delete slashing, it is slashed and is sorted to the front.
NOTE: Sort when doing storage
The priorities just like that: (No shares) ProgramVersion > validaotorTerm > BlockNumber > TxIndex
Compare Left And Right 1: Left > Right 0: Left == Right -1:Left < Right.
notice this assume key must right.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
the candidate power key.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
1000: The Duplicate package or Duplicate sign.
No description provided by the author
No description provided by the author
0001: The current candidate withdraws from the staking qualification (Active OR Passive).
0010: The candidate was low package ratio AND no delete.
0001,0000: The lowRatio AND must delete.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
0100: The current candidate's von does not meet the minimum staking threshold.
1000,xxxx,..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
0000: The current candidate is in force.
0010,0000: The Active withdrew.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
The Candidate info.
No description provided by the author
Display amount field using 0x hex.
No description provided by the author
No description provided by the author
the Delegate information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
An item that exists for slash.
No description provided by the author
No description provided by the author
No description provided by the author
the Validator info They are Simplified Candidate They are consensus nodes and Epoch nodes snapshottype Validator struct {
NodeAddress common.Address
NodeId discover.NodeID
// bls public key
BlsPubKey bls.PublicKeyHex
// The weight snapshot
// NOTE:
// converted from the weight snapshot of Candidate, they array order is:
//
// programVersion, candidate.shares, stakingBlocknum, stakingTxindex
//
// They origin type is: uint32, *big.Int, uint64, uint32
StakingWeight [SWeightItem]string
// Validator's term in the consensus round
ValidatorTerm uint32
}*/.
some consensus round validators or current epoch validators.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author