mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
fix difficulty
This commit is contained in:
parent
f12ae309cf
commit
73d080c125
2 changed files with 7 additions and 3 deletions
|
|
@ -353,7 +353,7 @@ func (c *Bor) verifyHeader(chain consensus.ChainReader, header *types.Header, pa
|
|||
}
|
||||
// Ensure that the block's difficulty is meaningful (may not be correct at this point)
|
||||
if number > 0 {
|
||||
if header.Difficulty == nil || (header.Difficulty.Cmp(diffInTurn) != 0 && header.Difficulty.Cmp(diffNoTurn) != 0) {
|
||||
if header.Difficulty == nil {
|
||||
return errInvalidDifficulty
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,12 +39,16 @@ 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[](2);
|
||||
address[] memory d = new address[](4);
|
||||
d[0] = 0x9fB29AAc15b9A4B7F17c3385939b007540f4d791;
|
||||
d[1] = 0x96C42C56fdb78294F96B0cFa33c92bed7D75F96a;
|
||||
uint256[] memory p = new uint256[](2);
|
||||
d[2] = 0x7D58F677794ECdB751332c9A507993dB1b008874;
|
||||
d[3] = 0xE4F1A86989758D4aC65671855B9a29B843bb865D;
|
||||
uint256[] memory p = new uint256[](4);
|
||||
p[0] = 10;
|
||||
p[1] = 20;
|
||||
p[2] = 30;
|
||||
p[3] = 40;
|
||||
return (d, p);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue