Skip to content

Commit

Permalink
chore(starknet_sequencer_node): use default value for validator id
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Dec 10, 2024
1 parent 324bdea commit df49104
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/starknet_integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use blockifier::test_utils::contracts::FeatureContract;
use blockifier::test_utils::{CairoVersion, RunnableCairo1};
use mempool_test_utils::starknet_api_test_utils::{AccountId, MultiAccountTransactionGenerator};
use papyrus_consensus::config::ConsensusConfig;
use papyrus_consensus::types::ValidatorId;
use papyrus_consensus::types::{ValidatorId, DEFAULT_VALIDATOR_ID};
use papyrus_network::network_manager::test_utils::create_network_configs_connected_to_broadcast_channels;
use papyrus_network::network_manager::BroadcastTopicChannels;
use papyrus_protobuf::consensus::{ProposalPart, StreamMessage};
Expand Down Expand Up @@ -75,7 +75,7 @@ pub async fn create_config(
chain_id: chain_info.chain_id,
eth_fee_token_address: fee_token_addresses.eth_fee_token_address,
strk_fee_token_address: fee_token_addresses.strk_fee_token_address,
validator_id: ContractAddress::from(100_u128),
validator_id: ContractAddress::from(DEFAULT_VALIDATOR_ID),
},
)
}
Expand Down
1 change: 1 addition & 0 deletions crates/starknet_sequencer_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const_format.workspace = true
futures.workspace = true
infra_utils.workspace = true
papyrus_config.workspace = true
papyrus_consensus.workspace = true
papyrus_proc_macros = { workspace = true, optional = true }
rstest.workspace = true
serde.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/starknet_sequencer_node/src/config/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::vec::Vec; // Used by #[gen_field_names_fn].

use papyrus_consensus::types::DEFAULT_VALIDATOR_ID;
use papyrus_proc_macros::gen_field_names_and_cli_args_fn;
use starknet_api::core::{ChainId, ContractAddress};

Expand All @@ -20,7 +21,7 @@ impl RequiredParams {
chain_id: ChainId::create_for_testing(),
eth_fee_token_address: ContractAddress::from(2_u128),
strk_fee_token_address: ContractAddress::from(3_u128),
validator_id: ContractAddress::from(100_u128),
validator_id: ContractAddress::from(DEFAULT_VALIDATOR_ID),
}
}
}
Expand Down

0 comments on commit df49104

Please sign in to comment.