mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
prepare testnet genesis
This commit is contained in:
parent
10e040ffd2
commit
4dfbf08a6f
2 changed files with 6 additions and 3 deletions
|
|
@ -217,7 +217,7 @@ func (w *wizard) makeGenesis() {
|
|||
}
|
||||
|
||||
// Randomize Smart Contract Code
|
||||
randomizeAddress, _, err := randomizeContract.DeployRandomize(transactOpts, contractBackend, big.NewInt(99))
|
||||
randomizeAddress, _, err := randomizeContract.DeployRandomize(transactOpts, contractBackend, big.NewInt(90))
|
||||
if err != nil {
|
||||
fmt.Println("Can't deploy root registry")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,11 @@ func NewValidator(transactOpts *bind.TransactOpts, contractAddr common.Address,
|
|||
func DeployValidator(transactOpts *bind.TransactOpts, contractBackend bind.ContractBackend, validatorAddress []common.Address, caps []*big.Int, ownerAddress common.Address) (common.Address, *Validator, error) {
|
||||
minDeposit := new(big.Int)
|
||||
minDeposit.SetString("50000000000000000000000", 10)
|
||||
validatorAddr, _, _, err := contract.DeployXDCValidator(transactOpts, contractBackend, validatorAddress, caps, ownerAddress, minDeposit, big.NewInt(99), big.NewInt(100), big.NewInt(100))
|
||||
if err != nil {
|
||||
// Deposit 50K 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, big.NewInt(150), big.NewInt(8640), big.NewInt(1296000)) if err != nil {
|
||||
return validatorAddr, nil, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue