-
Notifications
You must be signed in to change notification settings - Fork 19
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
chore: simplify genesis.json #368
Closed
Closed
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3d37361
chore: spork activation command changes
87e6499
Merge remote-tracking branch 'origin/spork-update' into simplify-genesis
strophy 4db9424
chore: remove unnecessary stubs from genesis.json
strophy 00b9e1a
chore: restore some deleted fields
strophy f4145d4
fix: faucet shows connection error on payout (#402)
strophy eb57e6c
fix: collaterals being spent when creating protx (#400)
strophy f3182c5
chore: bump version to 0.23.0-dev.4 (#403)
strophy aa5dff5
Merge branch 'v0.23-dev' into v0.24-dev
strophy 481c9d9
Merge branch 'v0.24-dev' into simplify-genesis
strophy 092dd3f
chore: genesis.json should only include chain_id
strophy 5476b13
chore: set create-proof-block-range = 1
strophy ac472d4
chore: update field names and init values
strophy 59be8d6
chore: add back consensus_params
strophy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 1 addition & 41 deletions
42
ansible/roles/mn-evo-services/templates/tendermint/genesis.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,3 @@ | ||
{ | ||
"genesis_time": "{{ genesis_time }}", | ||
"chain_id": "dash-{{ ( 'devnet-' + dash_devnet_name if dash_network == 'devnet' else dash_network ) if tenderdash_chain_id is not defined else tenderdash_chain_id }}", | ||
"initial_height": "0", | ||
"initial_core_chain_locked_height": {{ platform_initial_core_chain_locked_height | int }}, | ||
"initial_proposal_core_chain_lock": null, | ||
"consensus_params": { | ||
"block": { | ||
"max_bytes": "22020096", | ||
"max_gas": "-1", | ||
"time_iota_ms": "5000" | ||
}, | ||
"evidence": { | ||
"max_age": "100000", | ||
"max_age_num_blocks": "100000", | ||
"max_age_duration": "172800000000000" | ||
}, | ||
"validator": { | ||
"pub_key_types": [ | ||
"bls12381" | ||
] | ||
}, | ||
"version": {} | ||
}, | ||
"validators": [ | ||
{ | ||
"pub_key": { | ||
"type": "tendermint/PubKeyBLS12381", | ||
"value": "imxjukh5hRY91Mvm/sfhQp6iSnICyvKMMdhY5Sq6Ej0QJyB3vtN4UfYwvmxdzOVM" | ||
}, | ||
"power": 100, | ||
"name": "", | ||
"pro_tx_hash": "F3D506822A24E7E4BE318A6ED7371CC1E1527880A594FE04629F50A1618DB8E7" | ||
} | ||
], | ||
"threshold_public_key": { | ||
"type": "tendermint/PubKeyBLS12381", | ||
"value": "imxjukh5hRY91Mvm/sfhQp6iSnICyvKMMdhY5Sq6Ej0QJyB3vtN4UfYwvmxdzOVM" | ||
}, | ||
"quorum_type": {{ platform_drive_validator_set_llmq_type }}, | ||
"quorum_hash": "43FF39CC1F41B9FC63DFA5B1EDF3F0CA3AD5CAFAE4B12B4FE9263B08BB50C4CC", | ||
"app_hash": "" | ||
"chain_id": "dash-{{ ( 'devnet-' + dash_devnet_name if dash_network == 'devnet' else dash_network ) if tenderdash_chain_id is not defined else tenderdash_chain_id }}" | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep
genesis_time
,initial_height
,initial_core_chain_locked_height
,consensus_params
, andquorum_type
to make it more verbose and reduce future confusions.@lklimek shall we rename:
threshold_public_key
->validator_quorum_threshold_public_key
quorum_type
->validator_quorum_type
quorum_hash
->validator_quorum_hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fields renamed in PR dashpay/tenderdash#515 , started image build with tag rename-genesis-fields