Skip to content

Commit

Permalink
Merge branch 'main' into romac/floodsub
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Sep 6, 2024
2 parents 8c079f8 + 6cb9578 commit 23dd4c9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 40 deletions.
20 changes: 10 additions & 10 deletions code/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 code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ starknet-core = "0.11.1"
starknet-crypto = "0.7.1"

async-recursion = "1.1"
async-trait = "0.1.77"
async-trait = "0.1.82"
axum = "0.7"
base64 = "0.22.0"
bytesize = "1.3"
Expand Down Expand Up @@ -109,7 +109,7 @@ sha3 = "0.10"
signature = "2.2.0"
tempfile = "3.12.0"
thiserror = "1.0"
tokio = "1.39.3"
tokio = "1.40.0"
tokio-stream = "0.1"
toml = "0.8.19"
tracing = "0.1.40"
Expand Down
18 changes: 9 additions & 9 deletions code/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ max_tx_count = 10000
# Override with MALACHITE__MEMPOOL__GOSSIP_BATCH_SIZE
gossip_batch_size = 100

# The type of pub-sub protocol to use for the mempool
# !!! Does not have any effect yet !!!
#
# Possible values:
# - "gossipsub": Use the GossipSub v1.1 protocol (gossip, recommended)
# - "floodsub": Use the FloodSub protocol (no gossip, experimental)
# Override with MALACHITE__MEMPOOL__P2P__PROTOCOL env variable
protocol = "gossipsub"

#######################################################
### Mempool P2P Configuration Options ###
#######################################################
Expand All @@ -117,6 +108,15 @@ listen_addr = "/ip4/0.0.0.0/udp/0/quic-v1"
# List of nodes to keep persistent connections to
persistent_peers = []

# The type of pub-sub protocol to use for the mempool
# !!! Does not have any effect yet !!!
#
# Possible values:
# - "gossipsub": Use the GossipSub v1.1 protocol (gossip, recommended)
# - "floodsub": Use the FloodSub protocol (no gossip, experimental)
# Override with MALACHITE__MEMPOOL__P2P__PROTOCOL env variable
protocol = "gossipsub"

#######################################################
### Metrics Configuration Options ###
#######################################################
Expand Down
7 changes: 0 additions & 7 deletions code/crates/actors/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ pub enum HostMsg<Ctx: Context> {
reply_to: RpcReplyPort<ProposedValue<Ctx>>,
},

/// Retrieve a block/value for which all parts have been received
GetReceivedValue {
height: Ctx::Height,
round: Round,
reply_to: RpcReplyPort<Option<ProposedValue<Ctx>>>,
},

/// Get the validator set at a given height
GetValidatorSet {
height: Ctx::Height,
Expand Down
12 changes: 0 additions & 12 deletions code/crates/starknet/host/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,6 @@ impl Actor for StarknetHost {
Ok(())
}

HostMsg::GetReceivedValue {
height,
round,
reply_to,
} => {
let proposal_parts = state.part_store.all_parts(height, round);
let proposed_value = self.build_value_from_parts(&proposal_parts, height, round);
reply_to.send(proposed_value)?;

Ok(())
}

HostMsg::GetValidatorSet { height, reply_to } => {
if let Some(validators) = self.host.validators(height).await {
reply_to.send(ValidatorSet::new(validators))?;
Expand Down

0 comments on commit 23dd4c9

Please sign in to comment.