mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
bor validator set
This commit is contained in:
parent
e522930bc9
commit
ad198aeefd
2 changed files with 7 additions and 5 deletions
|
|
@ -59,8 +59,8 @@ func (v *Validator) String() string {
|
|||
if v == nil {
|
||||
return "nil-Validator"
|
||||
}
|
||||
return fmt.Sprintf("Validator{%v VP:%v A:%v}",
|
||||
v.Address,
|
||||
return fmt.Sprintf("Validator{%v Power:%v Priority:%v}",
|
||||
v.Address.Hex(),
|
||||
v.VotingPower,
|
||||
v.ProposerPriority)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,10 +39,12 @@ contract BorValidatorSet is ValidatorSet {
|
|||
|
||||
/// Get current validator set (last enacted or initial if no changes ever made) with current stake.
|
||||
function getValidators() external view returns (address[] memory, uint256[] memory) {
|
||||
address[] memory d = new address[](1);
|
||||
address[] memory d = new address[](2);
|
||||
d[0] = 0x9fB29AAc15b9A4B7F17c3385939b007540f4d791;
|
||||
uint256[] memory p = new uint256[](1);
|
||||
d[1] = 0x96C42C56fdb78294F96B0cFa33c92bed7D75F96a;
|
||||
uint256[] memory p = new uint256[](2);
|
||||
p[0] = 10;
|
||||
p[1] = 20;
|
||||
return (d, p);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue