mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-30 02:07:36 +00:00
fix bug delay withdraw for voter
This commit is contained in:
parent
b0e95fcc58
commit
7c48f8ec6d
1 changed files with 4 additions and 3 deletions
|
|
@ -33,11 +33,12 @@ func DeployValidator(transactOpts *bind.TransactOpts, contractBackend bind.Contr
|
|||
minVoterCap := new(big.Int)
|
||||
minVoterCap.SetString("10000000000000000000", 10)
|
||||
// Deposit 50K XDC
|
||||
// Min Voter Cap 10 XDC
|
||||
// Min Voter Cap 10 XDC
|
||||
// 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, minVoterCap, big.NewInt(150), big.NewInt(1296000), big.NewIn t(8640)) if err != nil {
|
||||
// Voter Delay Withdraw 2 days = 86400 blocks
|
||||
validatorAddr, _, _, err := contract.DeployXDCValidator(transactOpts, contractBackend, validatorAddress, caps, ownerAddress, minDeposit, minVoterCap, big.NewInt(150), big.NewInt(1296000), big.NewInt(86400))
|
||||
if err != nil {
|
||||
return validatorAddr, nil, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue