File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
domains/client/cross-domain-message-gossip/src Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
//! Schema for channel update storage.
2
2
3
+ use crate :: RELAYER_PREFIX ;
3
4
use parity_scale_codec:: { Decode , Encode } ;
4
5
use sc_client_api:: backend:: AuxStore ;
5
6
use sp_blockchain:: { Error as ClientError , Info , Result as ClientResult } ;
88
89
channel_detail. encode ( ) . as_slice ( ) ,
89
90
) ] ,
90
91
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) . encode ( ) ;
99
+ cleanup_chain_channel_storages (
100
+ backend,
101
+ & prefix,
102
+ src_chain_id,
103
+ channel_detail. channel_id ,
104
+ channel_nonce,
91
105
)
92
106
}
93
107
You can’t perform that action at this time.
0 commit comments