mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 20:25:40 +00:00
when messages pallet is halted, relay shall not submit messages delivery/confirmation transactions (#1289)
This commit is contained in:
committed by
Bastian Köcher
parent
0fa8c02e7a
commit
25008a5166
@@ -1113,7 +1113,11 @@ mod tests {
|
||||
REGULAR_PAYLOAD, TEST_LANE_ID, TEST_RELAYER_A, TEST_RELAYER_B,
|
||||
};
|
||||
use bp_messages::{UnrewardedRelayer, UnrewardedRelayersState};
|
||||
use frame_support::{assert_noop, assert_ok, storage::generator::StorageMap, weights::Weight};
|
||||
use frame_support::{
|
||||
assert_noop, assert_ok,
|
||||
storage::generator::{StorageMap, StorageValue},
|
||||
weights::Weight,
|
||||
};
|
||||
use frame_system::{EventRecord, Pallet as System, Phase};
|
||||
use sp_runtime::DispatchError;
|
||||
|
||||
@@ -2276,6 +2280,11 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn storage_keys_computed_properly() {
|
||||
assert_eq!(
|
||||
PalletOperatingMode::<TestRuntime>::storage_value_final_key().to_vec(),
|
||||
bp_messages::storage_keys::operating_mode_key("Messages").0,
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
OutboundMessages::<TestRuntime>::storage_map_final_key(MessageKey {
|
||||
lane_id: TEST_LANE_ID,
|
||||
|
||||
Reference in New Issue
Block a user