Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
3f010d1
test(blockifier): seprate bouncer test case test_sierra_gas_transacti…
avivg-starkware Jun 25, 2025
afa789f
apollo_http_server,apollo_dashboard: add tx latency metric (#7588)
ayeletstarkware Jun 26, 2025
ba4eeff
apollo_consensus_orchestrator: get_proposal_content returns BuildProp…
asmaastarkware Jun 26, 2025
4700baa
test(blockifier): add test_bouncer_try_update_proving_gas_based (#7559)
avivg-starkware Jun 26, 2025
ec89466
apollo_consensus_orchestrator: change skip_write_height config privac…
dafnamatsry Jun 26, 2025
2866f1b
starknet_os: add tests to verify hints are in correct enums (#7592)
amosStarkware Jun 26, 2025
9b8b9dc
blockifier: test get tx weights (#7591)
AvivYossef-starkware Jun 26, 2025
37b8948
blockifier: note about bootstrap declare in the mempool (#7596)
ArniStarkware Jun 26, 2025
de94a77
apollo_dashboard: alert for high http server add tx latency (#7589)
ayeletstarkware Jun 26, 2025
0ff85e0
starknet_os: add test_os_hints_are_unique_os_program_hints (#7593)
amosStarkware Jun 26, 2025
19c02aa
apollo_mempool: reorder add tx funct, capcity check after validation,…
ayeletstarkware Jun 26, 2025
2fa229a
blockifier: verify class hashes are the same (#7611)
AvivYossef-starkware Jun 26, 2025
afc33a3
apollo_consensus_orchestrator: add timeout to cende write (#7607)
guy-starkware Jun 26, 2025
c4610a3
apollo_consensus: reduce log level from debug! to trace! for very noi…
guyf-starkware Jun 26, 2025
c861d59
blockifier: share resources to gas logic (#7629)
AvivYossef-starkware Jun 26, 2025
0ae0d0d
apollo_deployments: rename DeploymentName to NodeType (#7630)
Itay-Tsabary-Starkware Jun 26, 2025
ff96a0f
apollo_deployments: refactor ServiceName to NodeService (#7631)
Itay-Tsabary-Starkware Jun 26, 2025
c435567
apollo_deployments: add and use template struct instead of naive stri…
Itay-Tsabary-Starkware Jun 26, 2025
3b5d846
apollo_deployments: create secrets override test util (#7585)
Itay-Tsabary-Starkware Jun 26, 2025
8154411
apollo_consensus: fix missing apollo_time tokio feature dependency (#…
Itay-Tsabary-Starkware Jun 27, 2025
53412a8
scripts: add main-v0.14.0-testnet as a branch
ShahakShama Jun 30, 2025
7839948
apollo_node: refactor dump and test fns to use common utils (#7648)
Itay-Tsabary-Starkware Jun 30, 2025
33d60fe
ci: also merge rust-toolchain.toml in forward merges (#7646)
dorimedini-starkware Jun 30, 2025
736e0f3
starknet_os,starknet_committer_and_os_cli: add da_segment to SnosOutp…
rotem-starkware Jun 30, 2025
72153dd
blockifier: add comment in computation_resources for tx_vm os_vm (#7613)
avivg-starkware Jun 30, 2025
942fbc4
apollo_node: move config schema file into apollo node module and rena…
Itay-Tsabary-Starkware Jun 30, 2025
ca2413c
apollo_deployments: change batcher tx_polling_interval from 100 to 1 ms
Itay-Tsabary-Starkware Jun 30, 2025
de69f82
starknet_os: move decompress function from tests to stateless_compres…
TzahiTaub Jun 30, 2025
261fa74
deployment: Add allow_load_balancer_global_access annotation (#7651)
shay-starkware Jun 30, 2025
5acb06f
blockifier: refactor some of the entry_point_execution.rs code for St…
dorimedini-starkware Jun 30, 2025
451f3e6
apollo_consensus_orchestrator: build_proposal now returns BuildPropos…
asmaastarkware Jun 30, 2025
c0c14c5
apollo_deployments: flatten our dir structure, general cleanups (#7634)
Itay-Tsabary-Starkware Jun 30, 2025
b9eec6f
apollo_deployments: unify deployment overrides per deployment and fla…
Itay-Tsabary-Starkware Jun 30, 2025
0488189
starknet_os: collect and output OS metrics (#7572)
dorimedini-starkware Jun 30, 2025
70c5313
apollo_node,apollo_deployments: obtain private values from config and…
Itay-Tsabary-Starkware Jun 30, 2025
43bf085
starknet_os: add OsOutput struct (#7657)
TzahiTaub Jun 30, 2025
2446ac4
apollo_l1_gas_price: make some config items public (#7663)
guy-starkware Jun 30, 2025
9078c47
apollo_node: fix private value pointers neglectment (#7661)
Itay-Tsabary-Starkware Jun 30, 2025
dafd0df
apollo_protobuf: wei_to_fri and fri_to_wei return Result (#7580)
guy-starkware Jun 30, 2025
c85b534
apollo_deployments: make secret key private (#7668)
Itay-Tsabary-Starkware Jun 30, 2025
fd501d5
chore(blockifier): update bouncer config (#7660)
meship-starkware Jul 1, 2025
10d2167
deployment: optionally initialize anvil state (#7652)
nadin-Starkware Jul 1, 2025
97d08af
starknet_os: add support for messages from output pointer in os outpu…
TzahiTaub Jul 1, 2025
ea52d11
apollo_consensus_orchestrator: send built commitment in trait impleme…
asmaastarkware Jul 1, 2025
89ad8e1
apollo_consensus_orchestrator: cherry pick await cende from main-v0.1…
ShahakShama Jul 1, 2025
7c11733
ci: fix copy state (#7654)
nadin-Starkware Jul 1, 2025
a7ade5e
apollo_consensus_orchestrator: convert_to_sn_api_block_info returns a…
guy-starkware Jul 1, 2025
71419e3
starknet_os: remove program input for python tests (#7672)
nimrod-starkware Jul 1, 2025
10d933a
apollo_central_sync: reduce log level for very noisy logs. (#7676)
guyf-starkware Jul 1, 2025
7af356d
apollo_consensus_orchestrator: await_second_proposal_part returns Val…
asmaastarkware Jul 1, 2025
b35ced8
blockifier: remove nonessential fileds from call info to compare the …
meship-starkware Jul 1, 2025
fdad0b2
starknet_os: define OsStateDiff in OsOutput (#7664)
TzahiTaub Jul 1, 2025
52ff6a2
apollo_config: increase min gas price to 3B (#7679)
alonh5 Jul 1, 2025
a4d9ff5
apollo_proc_macros: remove the test to its own crate to avoid circula…
guyf-starkware Jul 1, 2025
0b3d07f
test(blockifier): test summery add builtin counters (#7480)
meship-starkware Jul 1, 2025
656da0b
chore(blockifier): remove redundant todos (#7707)
meship-starkware Jul 1, 2025
415c316
apollo_mempool: reorder add tx funct, capcity check after validation,…
ayeletstarkware Jul 1, 2025
6ecf38b
blockifier: Add an assert that checks that proving and sierra gas bot…
meship-starkware Jul 1, 2025
32d0226
starknet_os: run tests directly (#7675)
nimrod-starkware Jul 1, 2025
c9a5efc
deployment: add num_validators to the DeploymentConfigOverride (#7689)
nadin-Starkware Jul 2, 2025
04caed8
blockifier: test cairo native flag in call info (#7546)
Yonatan-Starkware Jul 2, 2025
2cac124
starknet_os: aliases test (#7680)
nimrod-starkware Jul 2, 2025
fc70452
starknet_os: impl ContractChanges::from_iter in OsOutput (#7665)
TzahiTaub Jul 2, 2025
b936f17
starknet_os: add constants_test file (#7701)
aner-starkware Jul 2, 2025
d196ff4
starknet_os: add aliases test from non empty storage (#7714)
nimrod-starkware Jul 2, 2025
5dfad21
starknet_os: add get_const_from_program fn (#7693)
aner-starkware Jul 2, 2025
73cbbc0
deployment: add state sync type to the DeploymentConfigOverride (#7696)
nadin-Starkware Jul 2, 2025
acbb8b7
starknet_os: add get_const_from_program fn (#7694)
aner-starkware Jul 2, 2025
3d4cd1c
starknet_os: test aggregator input deserialization (#7539)
aner-starkware Jul 2, 2025
dbd4985
starknet_os: test_l2_address_bound (#7695)
aner-starkware Jul 2, 2025
a92af75
ci: add simulator script (#7700)
nadin-Starkware Jul 2, 2025
5372e00
apollo_l1_provider_types: change Event::TransactionConsumed to hold t…
AlonLStarkWare Jul 2, 2025
9af50c1
deployment: fix dummy servers url (#7715)
nadin-Starkware Jul 2, 2025
27e6e36
starknet_os: test blob constants (#7702)
aner-starkware Jul 2, 2025
bfaf4cb
ci: add simulator step to the system test (#7716)
nadin-Starkware Jul 3, 2025
bcb5929
chore: merge branch main-v0.13.6 into main-v0.14.0 (with conflicts)
meship-starkware Jul 3, 2025
b5554e3
chore: merge branch main-v0.13.6 into main-v0.14.0 (without conflicts)
meship-starkware Jul 3, 2025
e22e990
chore: fix objects test wrong merge resolve
meship-starkware Jul 3, 2025
56c8146
Merge main-v0.14.0-testnet into main-v0.14.0 (#7737)
ShahakShama Jul 3, 2025
bc23767
apollo_consensus_orchestrator: is_block_info_valid returns ValidatePr…
asmaastarkware Jul 3, 2025
63cec88
chore: merge branch main-v0.14.0-testnet into main-v0.14.0 (with conf…
ShahakShama Jul 3, 2025
3dcfbda
chore: resolve conflicts
ShahakShama Jul 3, 2025
65762c3
apollo_deployments: add sepolia testsnet deployment (#7713)
Itay-Tsabary-Starkware Jul 3, 2025
47b44e5
Merge pull request #7748 from starkware-libs/shahak/merge-main-v0.14.…
ShahakShama Jul 3, 2025
cbf15fc
scripts: delete main v0.14.0-testnet from merge paths (#7755)
ShahakShama Jul 3, 2025
816e88f
apollo_consensus_orchestrator: do not send rejected transactions to c…
victorkstarkware Jul 3, 2025
3810b00
apollo_gateway: expose l2_gas_price towards reject on insufficient ga…
ArniStarkware Jul 3, 2025
5f710c0
apollo_deployments: update stress test parameters for env restart (#7…
ShahakShama Jul 3, 2025
7b5fc2b
apollo_consensus_orchestrator: validate_proposal returns ValidateProp…
asmaastarkware Jul 3, 2025
5a5c6ba
apollo_mempool: log get_txs only when returning more than 0 txs (#7757)
alonh5 Jul 3, 2025
44353f0
apollo_proc_macros,apollo_infra: Add log_every_n macros. (#7666)
guyf-starkware Jul 3, 2025
e08feb4
starknet_committer_and_os_cli: remove program output from cli output …
TzahiTaub Jul 3, 2025
03926fb
apollo_network: Add tests for more validation cases. (#7601)
guyf-starkware Jul 3, 2025
b1fee81
apollo_deployments: fixed relative urls without base (#7697)
sirandreww-starkware Jul 3, 2025
c3e5223
starknet_os: test contract class hash version (#7722)
aner-starkware Jul 3, 2025
3a8eaa9
Merge remote-tracking branch 'origin/main-v0.14.0' into meshi/merge-m…
meship-starkware Jul 3, 2025
40c4384
blockifier: split execution summary to tx & builtins (#7738)
avivg-starkware Jul 3, 2025
5bd55b1
starknet_os: test l1 to l2 message header size (#7724)
aner-starkware Jul 3, 2025
9b245c5
apollo_l1_gas_price: replace very noisy debug log with a debug_every_…
guyf-starkware Jul 3, 2025
f30d79e
starknet_os: hide program output under a feature flag (#7735)
TzahiTaub Jul 3, 2025
341a254
starknet_os: test l2 to l1 message header size (#7725)
aner-starkware Jul 3, 2025
03da968
starknet_os: use OsOutput in StarknetOsRunnerOutput (#7671)
TzahiTaub Jul 3, 2025
4f6e07c
apollo_consensus_orchestrator: validate_current_round_proposal sends …
asmaastarkware Jul 3, 2025
206ebb3
apollo_http_server: sanitize errors in more debug friendly output (#7…
itamar-starkware Jul 3, 2025
957786a
blockifier: remove fee builtins duplicacy in get_tx_weights 2 (#7766)
avivg-starkware Jul 3, 2025
f24f74c
Merge remote-tracking branch 'origin/main-v0.14.0' into meshi/merge-m…
noaov1 Jul 5, 2025
924f734
refactor: small fixes in the bouncer test
meship-starkware Jul 6, 2025
6a43ee6
apollo_l1_gas_price: in rate client, put resolve_query inside the spa…
guy-starkware Jul 6, 2025
e5e5a7c
apollo_l1_gas_price: oracle client refactor to use two maps for rate/…
guy-starkware Jul 6, 2025
464f038
Merge pull request #7736 from starkware-libs/meshi/merge-main-v0.13.6…
meship-starkware Jul 6, 2025
8a64609
apollo_central_sync: config implements validation (#7605)
sirandreww-starkware Jul 6, 2025
bf034d3
apollo_deployments: update execute config parameters (#7762)
Itay-Tsabary-Starkware Jul 6, 2025
62876fa
apollo_integration_tests: add write pre confirmed to success recorder…
noamsp-starkware Jul 6, 2025
5752c82
apollo_batcher: use Preconfirmed prefix instead of PreConfirmed (#7708)
noamsp-starkware Jul 6, 2025
9512f9c
apollo_central_sync: added config validation for starknet url (#7703)
sirandreww-starkware Jul 6, 2025
00dcd4d
apollo_http_server: add low successful tx rate alert (#7776)
alonh5 Jul 6, 2025
f16ab35
starknet_os: add hinted class hash as input (#7764)
dorimedini-starkware Jul 6, 2025
7a2cf4d
apollo_config: allow list with json nested items (#7669)
guy-starkware Jul 6, 2025
59b132f
chore: merge branch main-v0.14.0 into main (with conflicts)
dorimedini-starkware Jul 6, 2025
5233349
chore: fix conflicts
dorimedini-starkware Jul 6, 2025
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
20 changes: 18 additions & 2 deletions .github/workflows/consolidated_system_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ on:

env:
job_link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
deployment_config_path: ${{ github.workspace }}/crates/apollo_deployments/resources/testing/deployment_configs/deployment_test_consolidated.json
deployment_config_path: ${{ github.workspace }}/crates/apollo_deployments/resources/deployments/testing/deployment_config_consolidated.json
namespace: sequencer-consolidated-system-test-run-${{ github.run_number }}-attempt-${{ github.run_attempt }}
cluster_name: consolidated-system-test
crate_triggers: "apollo_node,apollo_deployments,apollo_integration_tests"
path_triggers: ".github/workflows/consolidated_system_test.yaml,scripts/*.py,scripts/system_tests/**/*.py"
pvc_storage_class_name: "premium-rwo"
anvil_port: "8545"

permissions:
contents: read
Expand Down Expand Up @@ -317,7 +318,22 @@ jobs:
--interval ${{ env.check_interval_sec }}

- name: Copy state and restart pod
run: pipenv run python ./scripts/system_tests/copy_state_and_restart.py --deployment_config_path ${{ env.deployment_config_path }} --data-dir "./output/data/node_0"
run: pipenv run python ./scripts/system_tests/copy_state_and_restart.py --deployment_config_path ${{ env.deployment_config_path }} --data-dir "./output/data/node_0/executable_0"

- name: Port-forward Anvil pod to localhost:${{ env.anvil_port }}
run: |
echo "🔌 Setting up port-forward to Anvil..."

ANVIL_POD=$(kubectl get pods -n anvil -l app=anvil -o jsonpath="{.items[0].metadata.name}")
echo "🌐 Found Anvil pod: $ANVIL_POD"

# Start port-forwarding in background and keep it running
kubectl port-forward -n anvil "$ANVIL_POD" ${{ env.anvil_port }}:${{ env.anvil_port }} &
echo "⏳ Waiting a few seconds to ensure port-forward is established..."
sleep 2

- name: Send transactions test
run: pipenv run python ./scripts/system_tests/sequencer_simulator.py --deployment_config_path ${{ env.deployment_config_path }} --config_dir "${{ env.config_dir }}" --node_type "consolidated" --sender_address "${{ env.SENDER_ADDRESS }}" --receiver_address "${{ env.RECEIVER_ADDRESS }}"

- name: Get container logs
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sequencer_cdk8s-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
env:
cluster: test
namespace: test
deployment_config_path: ${{ github.workspace }}/crates/apollo_deployments/resources/testing/deployment_configs/deployment_test_consolidated.json
deployment_config_path: ${{ github.workspace }}/crates/apollo_deployments/resources/deployments/testing/deployment_config_consolidated.json
monitoring_dashboard_file: ${{ github.workspace }}/deployments/monitoring/examples/output/dashboards/sequencer_node_dashboard.json

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sequencer_docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
pull_request:

env:
crate_triggers: "apollo_node,apollo_dashboard"
crate_triggers: "apollo_node,apollo_dashboard,apollo_integration_tests"
path_triggers: ".github/workflows/sequencer_docker-test.yml,scripts/*.py,scripts/system_tests/**/*.py"

permissions:
Expand Down
33 changes: 26 additions & 7 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ members = [
"crates/apollo_node",
"crates/apollo_p2p_sync",
"crates/apollo_proc_macros",
"crates/apollo_proc_macros_tests",
"crates/apollo_protobuf",
"crates/apollo_reverts",
"crates/apollo_rpc",
Expand Down Expand Up @@ -127,7 +128,8 @@ apollo_network.path = "crates/apollo_network"
apollo_network_types.path = "crates/apollo_network_types"
apollo_node.path = "crates/apollo_node"
apollo_p2p_sync.path = "crates/apollo_p2p_sync"
apollo_proc_macros.path = "crates/apollo_proc_macros"
apollo_proc_macros = { path = "crates/apollo_proc_macros", version = "0.0.0" }
apollo_proc_macros_tests.path = "crates/apollo_proc_macros_tests"
apollo_protobuf.path = "crates/apollo_protobuf"
apollo_reverts.path = "crates/apollo_reverts"
apollo_rpc.path = "crates/apollo_rpc"
Expand Down Expand Up @@ -252,6 +254,7 @@ paste = "1.0.15"
phf = "0.11"
pretty_assertions = "1.4.0"
primitive-types = "0.12.1"
proc-macro2 = "1.0"
prometheus-parse = "0.2.4"
prost = "0.12.1"
prost-build = "0.12.1"
Expand Down
25 changes: 10 additions & 15 deletions crates/apollo_batcher/src/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ use crate::metrics::{
SYNCED_TRANSACTIONS,
};
use crate::pre_confirmed_block_writer::{
PreConfirmedBlockWriterFactory,
PreConfirmedBlockWriterFactoryTrait,
PreConfirmedBlockWriterTrait,
PreconfirmedBlockWriterFactory,
PreconfirmedBlockWriterFactoryTrait,
PreconfirmedBlockWriterTrait,
};
use crate::pre_confirmed_cende_client::PreConfirmedCendeClientTrait;
use crate::pre_confirmed_cende_client::PreconfirmedCendeClientTrait;
use crate::transaction_provider::{ProposeTransactionProvider, ValidateTransactionProvider};
use crate::utils::{
deadline_as_instant,
Expand All @@ -101,7 +101,7 @@ pub struct Batcher {
block_builder_factory: Box<dyn BlockBuilderFactoryTrait>,

/// Used to create pre-confirmed block writers.
pre_confirmed_block_writer_factory: Box<dyn PreConfirmedBlockWriterFactoryTrait>,
pre_confirmed_block_writer_factory: Box<dyn PreconfirmedBlockWriterFactoryTrait>,

/// The height that the batcher is currently working on.
/// All proposals are considered to be at this height.
Expand Down Expand Up @@ -137,7 +137,7 @@ impl Batcher {
mempool_client: SharedMempoolClient,
transaction_converter: TransactionConverter,
block_builder_factory: Box<dyn BlockBuilderFactoryTrait>,
pre_confirmed_block_writer_factory: Box<dyn PreConfirmedBlockWriterFactoryTrait>,
pre_confirmed_block_writer_factory: Box<dyn PreconfirmedBlockWriterFactoryTrait>,
) -> Self {
Self {
config,
Expand Down Expand Up @@ -580,12 +580,7 @@ impl Batcher {
block_execution_artifacts.execution_data.rejected_tx_hashes,
)
.await?;
let execution_infos: Vec<_> = block_execution_artifacts
.execution_data
.execution_infos
.into_iter()
.map(|(_, info)| info)
.collect();
let execution_infos = block_execution_artifacts.execution_data.execution_infos;

LAST_BATCHED_BLOCK.set_lossy(height.0);
BATCHED_TRANSACTIONS.increment(n_txs);
Expand Down Expand Up @@ -711,7 +706,7 @@ impl Batcher {
mut block_builder: Box<dyn BlockBuilderTrait>,
abort_signal_sender: tokio::sync::oneshot::Sender<()>,
final_n_executed_txs_sender: Option<tokio::sync::oneshot::Sender<usize>>,
pre_confirmed_block_writer: Option<Box<dyn PreConfirmedBlockWriterTrait>>,
pre_confirmed_block_writer: Option<Box<dyn PreconfirmedBlockWriterTrait>>,
mut proposal_metrics_handle: ProposalMetricsHandle,
) -> BatcherResult<()> {
self.set_active_proposal(proposal_id).await?;
Expand Down Expand Up @@ -862,14 +857,14 @@ pub fn create_batcher(
mempool_client: SharedMempoolClient,
l1_provider_client: SharedL1ProviderClient,
class_manager_client: SharedClassManagerClient,
pre_confirmed_cende_client: Arc<dyn PreConfirmedCendeClientTrait>,
pre_confirmed_cende_client: Arc<dyn PreconfirmedCendeClientTrait>,
) -> Batcher {
let (storage_reader, storage_writer) = apollo_storage::open_storage(config.storage.clone())
.expect("Failed to open batcher's storage");

let execute_config = &config.block_builder_config.execute_config;
let worker_pool = Arc::new(WorkerPool::start(execute_config));
let pre_confirmed_block_writer_factory = Box::new(PreConfirmedBlockWriterFactory {
let pre_confirmed_block_writer_factory = Box::new(PreconfirmedBlockWriterFactory {
config: config.pre_confirmed_block_writer_config,
cende_client: pre_confirmed_cende_client,
});
Expand Down
16 changes: 7 additions & 9 deletions crates/apollo_batcher/src/batcher_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use apollo_mempool_types::mempool_types::CommitBlockArgs;
use apollo_state_sync_types::state_sync_types::SyncBlock;
use assert_matches::assert_matches;
use blockifier::abi::constants;
use blockifier::transaction::objects::TransactionExecutionInfo;
use indexmap::{indexmap, IndexSet};
use metrics_exporter_prometheus::PrometheusBuilder;
use mockall::predicate::eq;
Expand Down Expand Up @@ -69,8 +68,8 @@ use crate::metrics::{
SYNCED_TRANSACTIONS,
};
use crate::pre_confirmed_block_writer::{
MockPreConfirmedBlockWriterFactoryTrait,
MockPreConfirmedBlockWriterTrait,
MockPreconfirmedBlockWriterFactoryTrait,
MockPreconfirmedBlockWriterTrait,
};
use crate::test_utils::{
test_txs,
Expand Down Expand Up @@ -117,7 +116,7 @@ struct MockDependencies {
mempool_client: MockMempoolClient,
l1_provider_client: MockL1ProviderClient,
block_builder_factory: MockBlockBuilderFactoryTrait,
pre_confirmed_block_writer_factory: MockPreConfirmedBlockWriterFactoryTrait,
pre_confirmed_block_writer_factory: MockPreconfirmedBlockWriterFactoryTrait,
class_manager_client: SharedClassManagerClient,
}

Expand All @@ -138,11 +137,11 @@ impl Default for MockDependencies {
.with(eq(CommitBlockArgs::default()))
.returning(|_| Ok(()));
let block_builder_factory = MockBlockBuilderFactoryTrait::new();
let mut pre_confirmed_block_writer_factory = MockPreConfirmedBlockWriterFactoryTrait::new();
let mut pre_confirmed_block_writer_factory = MockPreconfirmedBlockWriterFactoryTrait::new();
pre_confirmed_block_writer_factory.expect_create().returning(|_, _, _| {
let (non_working_candidate_tx_sender, _) = tokio::sync::mpsc::channel(1);
let (non_working_pre_confirmed_tx_sender, _) = tokio::sync::mpsc::channel(1);
let mut mock_writer = Box::new(MockPreConfirmedBlockWriterTrait::new());
let mut mock_writer = Box::new(MockPreconfirmedBlockWriterTrait::new());
mock_writer.expect_run().return_once(|| Box::pin(async move { Ok(()) }));
(mock_writer, non_working_candidate_tx_sender, non_working_pre_confirmed_tx_sender)
});
Expand Down Expand Up @@ -301,7 +300,7 @@ fn verify_decision_reached_response(
assert_eq!(response.central_objects.bouncer_weights, expected_artifacts.bouncer_weights);
assert_eq!(
response.central_objects.execution_infos,
expected_artifacts.execution_data.execution_infos.values().cloned().collect::<Vec<_>>()
expected_artifacts.execution_data.execution_infos
);
}

Expand Down Expand Up @@ -1088,8 +1087,7 @@ async fn test_execution_info_order_is_kept() {
batcher_propose_and_commit_block(mock_dependencies).await.unwrap();

// Verify that the execution_infos are in the same order as returned from the block_builder.
let expected_execution_infos: Vec<TransactionExecutionInfo> =
block_builder_result.execution_data.execution_infos.into_values().collect();
let expected_execution_infos = block_builder_result.execution_data.execution_infos;
assert_eq!(decision_reached_response.central_objects.execution_infos, expected_execution_infos);
}

Expand Down
Loading
Loading