Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize the minimum number of mortgage tokens in devnet #12330

Closed
cppfuns opened this issue Apr 25, 2023 · 4 comments
Closed

How to customize the minimum number of mortgage tokens in devnet #12330

cppfuns opened this issue Apr 25, 2023 · 4 comments

Comments

@cppfuns
Copy link

cppfuns commented Apr 25, 2023

I want to customize the minimum number of ETH participating in the deposit to 1000 in devnet.
I modified the system deposit contract, updated the genesis alloc, and reset the chain network.
And the deposit_data.json corresponding to the amount is generated.
After the transaction is successful, the corresponding validator participates in the block generation.
But when the current validator is activated, 96800ETH is returned.
In addition to modifying the system contract, what else needs to be modified?

@cppfuns
Copy link
Author

cppfuns commented Apr 26, 2023

@nisdas Do you have any suggestions? Thank you

@LilkkJerry
Copy link

@cppfuns I met a problem when using devnet, everytime when I restart the network(geth, beacon and validator), the network can not produce new block. Do you know how to solve this?

@cppfuns
Copy link
Author

cppfuns commented Apr 27, 2023

@cppfuns I met a problem when using devnet, everytime when I restart the network(geth, beacon and validator), the network can not produce new block. Do you know how to solve this?

Do you currently have only one genesis node producing blocks? Because a new consensus cannot be reached, the slot consensus cannot be continuously reached into the final state. You need to add some new nodes and stake them as validator nodes.

@rauljordan
Copy link
Contributor

Hi @cppfuns you can edit the num-validators value in docker-compose.yml for create-beacon-chain-genesis and the interop-num-validators value under the validator definition in that same file. Currently it is set to 64 validators in the chain. Each validator has 32 ETH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants