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

[Coinbase Go/No-Go] Add bonded balances to development genesis block #3091

Merged
merged 6 commits into from Feb 15, 2024

Conversation

raychu86
Copy link
Contributor

@raychu86 raychu86 commented Feb 13, 2024

Motivation

This PR is based on the changes made in AleoNet/snarkVM#2308.

We now pass through an optional bonded_balances variable to the START CLI to specify custom genesis bond state. Note that we still enforce that the validators must be from the set of development addresses and the number of validators must match the number specified in dev_num_validators

Example Command:

snarkos start --dev 0 --dev-num-validators 4 --dev-bonded-balances '{"validator_address_0":["validator_address_0",validator_amount_0], "validator_address_1":["validator_address_1",validator_amount_1], "validator_address_2":["validator_address_2",validator_amount_2], "validator_address_3":["validator_address_3",validator_amount_3], "delegator_address_0":["validator_address_0",delegator_amount_0]}'

Note: We may want to make this a .toml or JSON file instead.

@howardwu howardwu merged commit 86839a2 into mainnet Feb 15, 2024
0 of 24 checks passed
@howardwu howardwu deleted the feat/bonded_balances branch February 15, 2024 00:22
@howardwu howardwu changed the title Add bonded balances to development genesis block [Coinbase Go/No-Go] Add bonded balances to development genesis block Feb 16, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants