Skip to content

Commit

Permalink
chore(consensus): update ConsensusManagerConfig with new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-starkware committed Feb 2, 2025
1 parent 6e40aeb commit 9859dd1
Show file tree
Hide file tree
Showing 10 changed files with 144 additions and 264 deletions.
75 changes: 0 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
153 changes: 84 additions & 69 deletions config/sequencer/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,135 +664,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 node may actively participate in consensus.",
"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 @@ -804,6 +814,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
1 change: 1 addition & 0 deletions crates/blockifier/cairo_native
Submodule cairo_native added at 76e839
1 change: 0 additions & 1 deletion crates/papyrus_node/src/config/pointers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ pub static CONFIG_POINTERS: LazyLock<ConfigPointers> = LazyLock::new(|| {
set_pointing_param_paths(&[
"consensus.chain_id",
"context.chain_id",
"consensus.network_config.chain_id",
"network.chain_id",
"rpc.chain_id",
"storage.db_config.chain_id",
Expand Down
Loading

0 comments on commit 9859dd1

Please sign in to comment.