Skip to content

Commit a5cd16d

Browse files
committed
fixes
1 parent 7d0164e commit a5cd16d

File tree

6 files changed

+43
-54
lines changed

6 files changed

+43
-54
lines changed

core/bin/external_node/src/node_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ impl ExternalNodeBuilder {
575575
.optional
576576
.snapshots_recovery_postgres_max_concurrency,
577577
snapshot_recovery_config,
578-
diamond_proxy_addr: self.config.diamond_proxy_address(),
578+
diamond_proxy_addr: self.config.l1_diamond_proxy_address(),
579579
});
580580
let mut layer = NodeStorageInitializerLayer::new();
581581
if matches!(kind, LayerKind::Precondition) {

core/lib/dal/.sqlx/query-1701ec926e3fc1a170cc9432cc39544065610769d865092197ec0b8e52384939.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/lib/dal/.sqlx/query-843b299bbffbade83dd673ed4a488eefd4419e8a9eb05a9528da11163f52b2c7.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

core/node/l1_recovery/src/processor/db_recovery.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ use zksync_eth_client::EthInterface;
99
use zksync_object_store::ObjectStore;
1010
use zksync_types::{
1111
aggregated_operations::AggregatedActionType,
12-
block::{
13-
BlockGasCount, L1BatchHeader, L1BatchTreeData, L2BlockHasher, L2BlockHeader,
14-
UnsealedL1BatchHeader,
15-
},
12+
block::{L1BatchHeader, L1BatchTreeData, L2BlockHasher, L2BlockHeader, UnsealedL1BatchHeader},
1613
commitment::{L1BatchCommitmentArtifacts, L1BatchCommitmentHash},
1714
fee_model::{BatchFeeInput, L1PeggedBatchFeeModelInput},
1815
snapshots::SnapshotFactoryDependencies,
@@ -140,7 +137,6 @@ pub async fn recover_latest_l1_batch(
140137
fee_address: Default::default(),
141138
},
142139
&[],
143-
BlockGasCount::default(),
144140
&[],
145141
&[],
146142
CircuitStatistic::default(),
@@ -236,13 +232,15 @@ pub async fn recover_eth_sender(
236232
.await
237233
.unwrap();
238234
let mut storage = connection_pool.connection().await.unwrap();
235+
let chain_id = Some(l1_client.fetch_chain_id().await.unwrap());
239236
storage
240237
.eth_sender_dal()
241238
.insert_bogus_confirmed_eth_tx(
242239
last_l1_batch_number,
243240
AggregatedActionType::Commit,
244241
H256::random(),
245242
DateTime::default(),
243+
chain_id,
246244
)
247245
.await
248246
.unwrap();
@@ -253,6 +251,7 @@ pub async fn recover_eth_sender(
253251
AggregatedActionType::PublishProofOnchain,
254252
H256::random(),
255253
DateTime::default(),
254+
chain_id,
256255
)
257256
.await
258257
.unwrap();
@@ -263,6 +262,7 @@ pub async fn recover_eth_sender(
263262
AggregatedActionType::Execute,
264263
H256::random(),
265264
DateTime::default(),
265+
chain_id,
266266
)
267267
.await
268268
.unwrap();

core/node/node_framework/src/implementations/layers/node_storage_init/main_node_strategy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::{num::NonZeroUsize, sync::Arc};
33
use zksync_config::{
44
configs::object_store::ObjectStoreMode, ContractsConfig, GenesisConfig, ObjectStoreConfig,
55
};
6-
use zksync_dal::CoreDal;
76
use zksync_node_storage_init::{
87
external_node::NodeRecovery, main_node::MainNodeGenesis, InitializeStorage,
98
NodeInitializationStrategy, SnapshotRecoveryConfig,

zkstack_cli/Cargo.lock

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)