Skip to content

Commit 7a42a85

Browse files
committed
cleanup relayer specific aux usages
1 parent b928b3d commit 7a42a85

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

domains/client/cross-domain-message-gossip/src/aux_schema.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Schema for channel update storage.
22
3-
use crate::RELAYER_PREFIX;
43
use parity_scale_codec::{Decode, Encode};
54
use sc_client_api::backend::AuxStore;
65
use sp_blockchain::{Error as ClientError, Info, Result as ClientResult};
@@ -89,19 +88,6 @@ where
8988
channel_detail.encode().as_slice(),
9089
)],
9190
vec![],
92-
)?;
93-
94-
let channel_nonce = ChannelNonce {
95-
relay_msg_nonce: Some(channel_detail.next_inbox_nonce),
96-
relay_response_msg_nonce: channel_detail.latest_response_received_message_nonce,
97-
};
98-
let prefix = (RELAYER_PREFIX, src_chain_id, self_chain_id).encode();
99-
cleanup_chain_channel_storages(
100-
backend,
101-
&prefix,
102-
src_chain_id,
103-
channel_detail.channel_id,
104-
channel_nonce,
10591
)
10692
}
10793

domains/client/cross-domain-message-gossip/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ pub use gossip_worker::{
1313
xdm_gossip_peers_set_config, ChainMsg, ChainSink, ChannelUpdate, GossipWorker,
1414
GossipWorkerBuilder, Message, MessageData,
1515
};
16-
pub use message_listener::{
17-
can_allow_xdm_submission, start_cross_chain_message_listener, RELAYER_PREFIX,
18-
};
16+
pub use message_listener::{can_allow_xdm_submission, start_cross_chain_message_listener};

domains/client/cross-domain-message-gossip/src/message_listener.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use thiserror::Error;
3333

3434
pub(crate) const LOG_TARGET: &str = "domain_message_listener";
3535
const TX_POOL_PREFIX: &[u8] = b"xdm_tx_pool_listener";
36-
pub const RELAYER_PREFIX: &[u8] = b"xdm_relayer";
3736

3837
/// Number of blocks an already submitted XDM is not accepted since last submission.
3938
const XDM_ACCEPT_BLOCK_LIMIT: u32 = 15;

0 commit comments

Comments
 (0)