Skip to content

Commit 8c64add

Browse files
committed
fix
1 parent 0ba08d2 commit 8c64add

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

core/node/consensus/src/config.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::collections::{BTreeMap, HashMap};
33

44
use anyhow::Context as _;
55
use secrecy::{ExposeSecret as _, Secret};
6-
use zksync_concurrency::{limiter, net, time};
6+
use zksync_concurrency::{net, time};
77
use zksync_config::{
88
configs,
99
configs::consensus::{ConsensusConfig, ConsensusSecrets, Host, NodePublicKey},
@@ -152,11 +152,6 @@ pub(super) fn executor(
152152

153153
let mut rpc = executor::RpcConfig::default();
154154
rpc.get_block_rate = cfg.rpc().get_block_rate();
155-
// Disable batch syncing, because it is not implemented.
156-
rpc.get_batch_rate = limiter::Rate {
157-
burst: 0,
158-
refresh: time::Duration::ZERO,
159-
};
160155

161156
let debug_page = cfg.debug_page_addr.map(|addr| network::debug_page::Config {
162157
addr,
@@ -169,6 +164,7 @@ pub(super) fn executor(
169164
server_addr: cfg.server_addr,
170165
public_addr: net::Host(cfg.public_addr.0.clone()),
171166
max_payload_size: cfg.max_payload_size,
167+
view_timeout: time::Duration::milliseconds(cfg.view_timeout as i64),
172168
node_key: node_key(secrets)
173169
.context("node_key")?
174170
.context("missing node_key")?,

core/node/consensus/src/testonly.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn make_config(
149149
public_addr: config::Host(cfg.public_addr.0.clone()),
150150
max_payload_size: usize::MAX,
151151
max_batch_size: usize::MAX,
152-
view_timeout: usize::MAX,
152+
view_timeout: time::Duration::milliseconds(10000),
153153
gossip_dynamic_inbound_limit: cfg.gossip.dynamic_inbound_limit,
154154
gossip_static_inbound: cfg
155155
.gossip

0 commit comments

Comments
 (0)