From ad198aeefd40ea30cdfcf3fce59fa06701044a96 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani Date: Sat, 15 Jun 2019 19:56:16 +0530 Subject: [PATCH] bor validator set --- consensus/bor/validator.go | 4 ++-- contracts/validatorset/contract/BorValidatorSet.sol | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/consensus/bor/validator.go b/consensus/bor/validator.go index c65dd5858c..14d9de3d2f 100644 --- a/consensus/bor/validator.go +++ b/consensus/bor/validator.go @@ -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) } diff --git a/contracts/validatorset/contract/BorValidatorSet.sol b/contracts/validatorset/contract/BorValidatorSet.sol index 093c8deecc..ae73ded936 100644 --- a/contracts/validatorset/contract/BorValidatorSet.sol +++ b/contracts/validatorset/contract/BorValidatorSet.sol @@ -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); } -} \ No newline at end of file +} \ No newline at end of file