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

chore: simplify genesis.json #368

Closed
wants to merge 13 commits into from
Closed
2 changes: 1 addition & 1 deletion ansible/roles/activate-dashd-sporks/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
register: active_sporks

- name: activate non active sporks
shell: dash-cli spork {{item}} 0
shell: dash-cli sporkupdate {{item}} 0
with_items:
- SPORK_2_INSTANTSEND_ENABLED
- SPORK_3_INSTANTSEND_BLOCK_FILTERING
Expand Down
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",
Copy link
Member

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, and quorum_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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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 }}"
}