Skip to content

Commit d27708b

Browse files
committed
feat(p2p/meshsub): fix for wasm
1 parent 7e0edae commit d27708b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

node/web/src/node/builder.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use node::{
99
core::{consensus::ConsensusConstants, constants::constraint_constants},
1010
p2p::{
1111
channels::ChannelId, connection::outgoing::P2pConnectionOutgoingInitOpts,
12-
identity::SecretKey as P2pSecretKey, P2pLimits, P2pTimeouts,
12+
identity::SecretKey as P2pSecretKey, P2pLimits, P2pMeshsubConfig, P2pTimeouts,
1313
},
1414
snark::{get_srs, get_verifier_index, VerifierIndex, VerifierKind, VerifierSRS},
1515
transition_frontier::genesis::GenesisConfig,
@@ -227,9 +227,12 @@ impl NodeBuilder {
227227
ask_initial_peers_interval: Duration::from_secs(3600),
228228
enabled_channels: ChannelId::iter_all().collect(),
229229
peer_discovery: !self.p2p_no_discovery,
230-
initial_time: initial_time
231-
.checked_sub(redux::Timestamp::ZERO)
232-
.unwrap_or_default(),
230+
meshsub: P2pMeshsubConfig {
231+
initial_time: initial_time
232+
.checked_sub(redux::Timestamp::ZERO)
233+
.unwrap_or_default(),
234+
..Default::default()
235+
},
233236
timeouts: P2pTimeouts::default(),
234237
limits: P2pLimits::default().with_max_peers(Some(100)),
235238
},

0 commit comments

Comments
 (0)