mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
add min for voter
This commit is contained in:
parent
7827a8c35b
commit
f570befa8e
4 changed files with 12 additions and 9 deletions
|
|
@ -34,7 +34,7 @@ func DeployValidator(transactOpts *bind.TransactOpts, contractBackend bind.Contr
|
||||||
// 150 masternodes
|
// 150 masternodes
|
||||||
// Candidate Delay Withdraw 30 days = 1296000 blocks
|
// Candidate Delay Withdraw 30 days = 1296000 blocks
|
||||||
// Voter Delay Withdraw 2 days = 8640 blocks
|
// Voter Delay Withdraw 2 days = 8640 blocks
|
||||||
validatorAddr, _, _, err := contract.DeployXDCValidator(transactOpts, contractBackend, validatorAddress, caps, ownerAddress, minDeposit, big.NewInt(150), big.NewInt(1296000), big.NewInt(8640)) if err != nil {
|
validatorAddr, _, _, err := contract.DeployXDCValidator(transactOpts, contractBackend, validatorAddress, caps, ownerAddress, minDeposit, minVoterCap, big.NewInt(150), big.NewInt(1296000), big.NewIn t(8640)) if err != nil {
|
||||||
return validatorAddr, nil, err
|
return validatorAddr, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ func TestRewardBalance(t *testing.T) {
|
||||||
[]*big.Int{validatorCap},
|
[]*big.Int{validatorCap},
|
||||||
addr,
|
addr,
|
||||||
big.NewInt(50000),
|
big.NewInt(50000),
|
||||||
|
big.NewInt(1),
|
||||||
big.NewInt(99),
|
big.NewInt(99),
|
||||||
big.NewInt(100),
|
big.NewInt(100),
|
||||||
big.NewInt(100),
|
big.NewInt(100),
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue