add min for voter

This commit is contained in:
MestryOmkar 2018-10-30 18:21:25 +05:30
parent 7827a8c35b
commit f570befa8e
4 changed files with 12 additions and 9 deletions

View file

@ -34,7 +34,7 @@ func DeployValidator(transactOpts *bind.TransactOpts, contractBackend bind.Contr
// 150 masternodes
// Candidate Delay Withdraw 30 days = 1296000 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
}

View file

@ -86,6 +86,7 @@ func TestRewardBalance(t *testing.T) {
[]*big.Int{validatorCap},
addr,
big.NewInt(50000),
big.NewInt(1),
big.NewInt(99),
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