Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
46a4231
client/beefy: create communication module and move gossip there
acatangiu Aug 25, 2022
cda48fc
client/beefy: move beefy_protocol_name module to communication
acatangiu Aug 25, 2022
e8157d7
client/beefy: move notification module under communication
acatangiu Aug 25, 2022
f9bf81b
client/beefy: add incoming request_response protocol handler
acatangiu Aug 26, 2022
f68920e
client/beefy: keep track of connected peers and their progress
acatangiu Aug 26, 2022
5fc1bb7
client/beefy: add logic for generating Justif requests
acatangiu Aug 26, 2022
9f05d3a
client/beefy: cancel outdated on-demand justification requests
acatangiu Aug 26, 2022
ac5c3a5
try Andre's suggestion for JustificationEngine
acatangiu Sep 9, 2022
e9ebea7
justif engine add justifs validation
acatangiu Sep 9, 2022
fbd4f57
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 12, 2022
4ab5ab0
client/beefy: impl OnDemandJustificationsEngine async next()
acatangiu Sep 12, 2022
88f8904
move beefy proto name test
acatangiu Sep 13, 2022
b5bf047
client/beefy: initialize OnDemandJustificationsEngine
acatangiu Sep 13, 2022
2e47d2c
client/tests: allow for custom req-resp protocols
acatangiu Sep 13, 2022
fdebcaa
client/beefy: on-demand-justif: implement simple peer selection strategy
acatangiu Sep 14, 2022
9aedbfa
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 15, 2022
2f02fba
client/beefy: fix voter initialization
acatangiu Sep 15, 2022
a9c60df
client/beefy: make sure justif requests are always out for mandatory …
acatangiu Sep 16, 2022
d48e199
client/beefy: add test for on-demand justifications sync
acatangiu Sep 16, 2022
3cb39f7
client/beefy: tweak main loop event processing order
acatangiu Sep 16, 2022
1908941
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 16, 2022
d265845
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 19, 2022
f76dd02
client/beefy: run on-demand-justif-handler under same async task as v…
acatangiu Sep 19, 2022
5496ea8
client/beefy: add test for known-peers
acatangiu Sep 19, 2022
940aaf2
client/beefy: reorg request-response module
acatangiu Sep 19, 2022
dbc2964
client/beefy: add issue references for future work todos
acatangiu Sep 19, 2022
b69471c
client/beefy: consolidate on-demand-justifications engine state machine
acatangiu Sep 20, 2022
b226996
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 21, 2022
68854a8
client/beefy: fix for polkadot companion
acatangiu Sep 21, 2022
683ddc5
client/beefy: implement review suggestions
acatangiu Sep 22, 2022
200cdf0
cargo fmt and clippy
acatangiu Sep 23, 2022
7a8950d
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 26, 2022
447dc2d
fix merge damage
acatangiu Sep 26, 2022
65cc99e
fix rust-doc
acatangiu Sep 26, 2022
9d6cd2f
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Sep 27, 2022
c68cbef
fix merge damage
acatangiu Sep 27, 2022
9a6bccd
fix merge damage
acatangiu Sep 27, 2022
b904741
client/beefy: add test for justif proto name
acatangiu Oct 3, 2022
fd50ee7
Merge branch 'master' of github.com:paritytech/substrate into beefy-c…
acatangiu Oct 3, 2022
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
Prev Previous commit
Next Next commit
fix merge damage
  • Loading branch information
acatangiu committed Sep 27, 2022
commit c68cbef7cdbff5f076c422e5df6e4ed88e8916e6
7 changes: 4 additions & 3 deletions client/beefy/src/communication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ pub(crate) mod beefy_protocol_name {
}

/// Returns the configuration value to put in
/// [`sc_network::config::NetworkConfiguration::extra_sets`].
/// [`sc_network_common::config::NetworkConfiguration::extra_sets`].
/// For standard protocol name see [`beefy_protocol_name::gossip_protocol_name`].
pub fn beefy_peers_set_config(
gossip_protocol_name: sc_network::ProtocolName,
) -> sc_network::config::NonDefaultSetConfig {
let mut cfg = sc_network::config::NonDefaultSetConfig::new(gossip_protocol_name, 1024 * 1024);
) -> sc_network_common::config::NonDefaultSetConfig {
let mut cfg =
sc_network_common::config::NonDefaultSetConfig::new(gossip_protocol_name, 1024 * 1024);

cfg.allow_non_reserved(25, 25);
cfg.add_fallback_names(beefy_protocol_name::LEGACY_NAMES.iter().map(|&n| n.into()).collect());
Expand Down
5 changes: 1 addition & 4 deletions client/network/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ use sc_consensus::{
Verifier,
};
use sc_network::{
config::{
NetworkConfiguration, NonDefaultSetConfig, NonReservedPeerMode, RequestResponseConfig,
Role, SyncMode, TransportConfig,
},
config::{NetworkConfiguration, RequestResponseConfig, Role, SyncMode},
Multiaddr, NetworkService, NetworkWorker,
};
use sc_network_common::{
Expand Down