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(consensus): add PapyrusConsensusConfig struct #3377

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 20 additions & 75 deletions config/papyrus/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,81 +89,6 @@
"privacy": "Public",
"value": 5
},
"consensus.network_config.advertised_multiaddr": {
"description": "The external address other peers see this node. If this is set, the node will not try to find out which addresses it has and will write this address as external instead",
"privacy": "Public",
"value": ""
},
"consensus.network_config.advertised_multiaddr.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"consensus.network_config.bootstrap_peer_multiaddr": {
"description": "The multiaddress of the peer node. It should include the peer's id. For more info: https://docs.libp2p.io/concepts/fundamentals/peers/",
"privacy": "Public",
"value": ""
},
"consensus.network_config.bootstrap_peer_multiaddr.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"consensus.network_config.chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"pointer_target": "chain_id",
"privacy": "Public"
},
"consensus.network_config.discovery_config.bootstrap_dial_retry_config.base_delay_millis": {
"description": "The base delay in milliseconds for the exponential backoff strategy.",
"privacy": "Public",
"value": 2
},
"consensus.network_config.discovery_config.bootstrap_dial_retry_config.factor": {
"description": "The factor for the exponential backoff strategy.",
"privacy": "Public",
"value": 5
},
"consensus.network_config.discovery_config.bootstrap_dial_retry_config.max_delay_seconds": {
"description": "The maximum delay in seconds for the exponential backoff strategy.",
"privacy": "Public",
"value": 5
},
"consensus.network_config.discovery_config.heartbeat_interval": {
"description": "The interval between each discovery (Kademlia) query in milliseconds.",
"privacy": "Public",
"value": 100
},
"consensus.network_config.idle_connection_timeout": {
"description": "Amount of time in seconds that a connection with no active sessions will stay alive.",
"privacy": "Public",
"value": 120
},
"consensus.network_config.peer_manager_config.malicious_timeout_seconds": {
"description": "The duration in seconds a peer is blacklisted after being marked as malicious.",
"privacy": "Public",
"value": 31536000
},
"consensus.network_config.peer_manager_config.unstable_timeout_millis": {
"description": "The duration in milliseconds a peer blacklisted after being reported as unstable.",
"privacy": "Public",
"value": 1000
},
"consensus.network_config.secret_key": {
"description": "The secret key used for building the peer id. If it's an empty string a random one will be used.",
"privacy": "Private",
"value": ""
},
"consensus.network_config.session_timeout": {
"description": "Maximal time in seconds that each session can take before failing on timeout.",
"privacy": "Public",
"value": 120
},
"consensus.network_config.tcp_port": {
"description": "The port that the node listens on for incoming tcp connections.",
"privacy": "Public",
"value": 10100
},
"consensus.network_topic": {
"description": "The network topic of the consensus.",
"privacy": "Public",
Expand Down Expand Up @@ -364,6 +289,26 @@
"privacy": "Public",
"value": 50
},
"papyrus_consensus.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"papyrus_consensus.proposals_topic": {
"description": "The topic for consensus proposals.",
"privacy": "Public",
"value": "consensus_proposals"
},
"papyrus_consensus.start_height": {
"description": "The height to start the consensus from.",
"privacy": "Public",
"value": 0
},
"papyrus_consensus.votes_topic": {
"description": "The topic for consensus votes.",
"privacy": "Public",
"value": "consensus_votes"
},
"rpc.chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"pointer_target": "chain_id",
Expand Down
153 changes: 84 additions & 69 deletions config/sequencer/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,135 +689,145 @@
"privacy": "Public",
"value": 5
},
"consensus_manager_config.consensus_config.network_config.advertised_multiaddr": {
"consensus_manager_config.consensus_config.network_topic": {
"description": "The network topic of the consensus.",
"privacy": "Public",
"value": "consensus"
},
"consensus_manager_config.consensus_config.num_validators": {
"description": "The number of validators in the consensus.",
"privacy": "Public",
"value": 1
},
"consensus_manager_config.consensus_config.start_height": {
"description": "The height to start the consensus from.",
"privacy": "Public",
"value": 0
},
"consensus_manager_config.consensus_config.sync_retry_interval": {
"description": "The duration (seconds) between sync attempts.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.precommit_timeout": {
"description": "The timeout (seconds) for a precommit.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.prevote_timeout": {
"description": "The timeout (seconds) for a prevote.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.proposal_timeout": {
"description": "The timeout (seconds) for a proposal.",
"privacy": "Public",
"value": 3.0
},
"consensus_manager_config.consensus_config.validator_id": {
"description": "The validator id of the node.",
"pointer_target": "validator_id",
"privacy": "Public"
},
"consensus_manager_config.context_config.batcher_build_buffer": {
"description": "The buffer size for the batcher when building proposals.",
"privacy": "Public",
"value": 100
},
"consensus_manager_config.context_config.chain_id": {
"description": "The chain id of the Starknet chain.",
"pointer_target": "chain_id",
"privacy": "Public"
},
"consensus_manager_config.context_config.num_validators": {
"description": "The number of validators.",
"privacy": "Public",
"value": 1
},
"consensus_manager_config.immediate_active_height": {
"description": "The height at which the consensus manager becomes active.",
"privacy": "Public",
"value": 0
},
"consensus_manager_config.network_config.advertised_multiaddr": {
"description": "The external address other peers see this node. If this is set, the node will not try to find out which addresses it has and will write this address as external instead",
"privacy": "Public",
"value": ""
},
"consensus_manager_config.consensus_config.network_config.advertised_multiaddr.#is_none": {
"consensus_manager_config.network_config.advertised_multiaddr.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"consensus_manager_config.consensus_config.network_config.bootstrap_peer_multiaddr": {
"consensus_manager_config.network_config.bootstrap_peer_multiaddr": {
"description": "The multiaddress of the peer node. It should include the peer's id. For more info: https://docs.libp2p.io/concepts/fundamentals/peers/",
"privacy": "Public",
"value": ""
},
"consensus_manager_config.consensus_config.network_config.bootstrap_peer_multiaddr.#is_none": {
"consensus_manager_config.network_config.bootstrap_peer_multiaddr.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"consensus_manager_config.consensus_config.network_config.chain_id": {
"consensus_manager_config.network_config.chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"pointer_target": "chain_id",
"privacy": "Public"
},
"consensus_manager_config.consensus_config.network_config.discovery_config.bootstrap_dial_retry_config.base_delay_millis": {
"consensus_manager_config.network_config.discovery_config.bootstrap_dial_retry_config.base_delay_millis": {
"description": "The base delay in milliseconds for the exponential backoff strategy.",
"privacy": "Public",
"value": 2
},
"consensus_manager_config.consensus_config.network_config.discovery_config.bootstrap_dial_retry_config.factor": {
"consensus_manager_config.network_config.discovery_config.bootstrap_dial_retry_config.factor": {
"description": "The factor for the exponential backoff strategy.",
"privacy": "Public",
"value": 5
},
"consensus_manager_config.consensus_config.network_config.discovery_config.bootstrap_dial_retry_config.max_delay_seconds": {
"consensus_manager_config.network_config.discovery_config.bootstrap_dial_retry_config.max_delay_seconds": {
"description": "The maximum delay in seconds for the exponential backoff strategy.",
"privacy": "Public",
"value": 5
},
"consensus_manager_config.consensus_config.network_config.discovery_config.heartbeat_interval": {
"consensus_manager_config.network_config.discovery_config.heartbeat_interval": {
"description": "The interval between each discovery (Kademlia) query in milliseconds.",
"privacy": "Public",
"value": 100
},
"consensus_manager_config.consensus_config.network_config.idle_connection_timeout": {
"consensus_manager_config.network_config.idle_connection_timeout": {
"description": "Amount of time in seconds that a connection with no active sessions will stay alive.",
"privacy": "Public",
"value": 120
},
"consensus_manager_config.consensus_config.network_config.peer_manager_config.malicious_timeout_seconds": {
"consensus_manager_config.network_config.peer_manager_config.malicious_timeout_seconds": {
"description": "The duration in seconds a peer is blacklisted after being marked as malicious.",
"privacy": "Public",
"value": 31536000
},
"consensus_manager_config.consensus_config.network_config.peer_manager_config.unstable_timeout_millis": {
"consensus_manager_config.network_config.peer_manager_config.unstable_timeout_millis": {
"description": "The duration in milliseconds a peer blacklisted after being reported as unstable.",
"privacy": "Public",
"value": 1000
},
"consensus_manager_config.consensus_config.network_config.secret_key": {
"consensus_manager_config.network_config.secret_key": {
"description": "The secret key used for building the peer id. If it's an empty string a random one will be used.",
"privacy": "Private",
"value": ""
},
"consensus_manager_config.consensus_config.network_config.session_timeout": {
"consensus_manager_config.network_config.session_timeout": {
"description": "Maximal time in seconds that each session can take before failing on timeout.",
"privacy": "Public",
"value": 120
},
"consensus_manager_config.consensus_config.network_config.tcp_port": {
"consensus_manager_config.network_config.tcp_port": {
"description": "The port that the node listens on for incoming tcp connections.",
"privacy": "Public",
"value": 10100
},
"consensus_manager_config.consensus_config.network_topic": {
"description": "The network topic of the consensus.",
"privacy": "Public",
"value": "consensus"
},
"consensus_manager_config.consensus_config.num_validators": {
"description": "The number of validators in the consensus.",
"privacy": "Public",
"value": 1
},
"consensus_manager_config.consensus_config.start_height": {
"description": "The height to start the consensus from.",
"privacy": "Public",
"value": 0
},
"consensus_manager_config.consensus_config.sync_retry_interval": {
"description": "The duration (seconds) between sync attempts.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.precommit_timeout": {
"description": "The timeout (seconds) for a precommit.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.prevote_timeout": {
"description": "The timeout (seconds) for a prevote.",
"privacy": "Public",
"value": 1.0
},
"consensus_manager_config.consensus_config.timeouts.proposal_timeout": {
"description": "The timeout (seconds) for a proposal.",
"privacy": "Public",
"value": 3.0
},
"consensus_manager_config.consensus_config.validator_id": {
"description": "The validator id of the node.",
"pointer_target": "validator_id",
"privacy": "Public"
},
"consensus_manager_config.context_config.batcher_build_buffer": {
"description": "The buffer size for the batcher when building proposals.",
"privacy": "Public",
"value": 100
},
"consensus_manager_config.context_config.chain_id": {
"description": "The chain id of the Starknet chain.",
"pointer_target": "chain_id",
"privacy": "Public"
"value": 10000
},
"consensus_manager_config.context_config.num_validators": {
"description": "The number of validators.",
"consensus_manager_config.proposals_topic": {
"description": "The topic for consensus proposals.",
"privacy": "Public",
"value": 1
"value": "consensus_proposals"
},
"consensus_manager_config.revert_up_to_and_including": {
"description": "The batcher will revert blocks up to this block number (including). Use this configurations carefully to prevent significant revert operations and data loss.",
Expand All @@ -829,6 +839,11 @@
"privacy": "TemporaryValue",
"value": true
},
"consensus_manager_config.votes_topic": {
"description": "The topic for consensus votes.",
"privacy": "Public",
"value": "consensus_votes"
},
"eth_fee_token_address": {
"description": "A required param! Address of the ETH fee token.",
"param_type": "String",
Expand Down
Loading
Loading