mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
Change request-response protocol names to include genesis hash & fork id (#5870)
This commit is contained in:
@@ -31,7 +31,7 @@ use parity_scale_codec::{Decode, Encode};
|
||||
use sc_network::config::RequestResponseConfig;
|
||||
|
||||
use polkadot_node_network_protocol::{
|
||||
request_response::{v1::DisputeRequest, IncomingRequest},
|
||||
request_response::{v1::DisputeRequest, IncomingRequest, ReqProtocolNames},
|
||||
PeerId,
|
||||
};
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
@@ -723,7 +723,9 @@ where
|
||||
sp_tracing::try_init_simple();
|
||||
let keystore = make_ferdie_keystore();
|
||||
|
||||
let (req_receiver, req_cfg) = IncomingRequest::get_config_receiver();
|
||||
let genesis_hash = Hash::repeat_byte(0xff);
|
||||
let req_protocol_names = ReqProtocolNames::new(&genesis_hash, None);
|
||||
let (req_receiver, req_cfg) = IncomingRequest::get_config_receiver(&req_protocol_names);
|
||||
let subsystem = DisputeDistributionSubsystem::new(
|
||||
keystore,
|
||||
req_receiver,
|
||||
|
||||
Reference in New Issue
Block a user