mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix bug delay withdraw for voter
This commit is contained in:
parent
7c55084785
commit
59bb89968f
1 changed files with 2 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ func DeployValidator(transactOpts *bind.TransactOpts, contractBackend bind.Contr
|
|||
// Min Voter Cap 10 TOMO
|
||||
// 150 masternodes
|
||||
// Candidate Delay Withdraw 30 days = 1296000 blocks
|
||||
// Voter Delay Withdraw 2 days = 8640 blocks
|
||||
validatorAddr, _, _, err := contract.DeployTomoValidator(transactOpts, contractBackend, validatorAddress, caps, ownerAddress, minDeposit, minVoterCap, big.NewInt(150), big.NewInt(1296000), big.NewInt(8640))
|
||||
// Voter Delay Withdraw 2 days = 86400 blocks
|
||||
validatorAddr, _, _, err := contract.DeployTomoValidator(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