mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 17:47:56 +00:00
small improvements for parachains consensus (#2040)
* introduce a waiting period before selecting candidates and bitfields * add network_bridge=debug tracing for rep * change to 2.5s timeout in proposer * pass timeout to proposer * move timeout back to provisioner * grumbles * Update node/core/provisioner/src/lib.rs * Fix nitpicks * Fix bug Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
committed by
GitHub
parent
0f4395fc44
commit
414acdfc54
@@ -136,6 +136,7 @@ impl Network for Arc<sc_network::NetworkService<Block, Hash>> {
|
||||
sc_network::NetworkService::event_stream(self, "polkadot-network-bridge").boxed()
|
||||
}
|
||||
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn action_sink<'a>(&'a mut self)
|
||||
-> Pin<Box<dyn Sink<NetworkAction, Error = SubsystemError> + Send + 'a>>
|
||||
{
|
||||
@@ -153,10 +154,13 @@ impl Network for Arc<sc_network::NetworkService<Block, Hash>> {
|
||||
|
||||
fn start_send(self: Pin<&mut Self>, action: NetworkAction) -> SubsystemResult<()> {
|
||||
match action {
|
||||
NetworkAction::ReputationChange(peer, cost_benefit) => self.0.report_peer(
|
||||
peer,
|
||||
cost_benefit,
|
||||
),
|
||||
NetworkAction::ReputationChange(peer, cost_benefit) => {
|
||||
tracing::debug!("reputation: {:?} for {}", cost_benefit, peer);
|
||||
self.0.report_peer(
|
||||
peer,
|
||||
cost_benefit,
|
||||
)
|
||||
}
|
||||
NetworkAction::WriteNotification(peer, peer_set, message) => {
|
||||
match peer_set {
|
||||
PeerSet::Validation => self.0.write_notification(
|
||||
|
||||
Reference in New Issue
Block a user