bor validator set

This commit is contained in:
Jaynti Kanani 2019-06-15 19:56:16 +05:30
parent e522930bc9
commit ad198aeefd
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E
2 changed files with 7 additions and 5 deletions

View file

@ -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)
}

View file

@ -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);
}
}
}