Skip to content

Commit b928b3d

Browse files
committed
enable relayer and ignored tests related to XDM
1 parent b880ae9 commit b928b3d

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

domains/client/domain-operator/src/tests.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5346,7 +5346,6 @@ async fn existing_bundle_can_be_resubmitted_to_new_fork() {
53465346
}
53475347

53485348
#[tokio::test(flavor = "multi_thread")]
5349-
#[ignore]
53505349
async fn test_domain_sudo_calls() {
53515350
let (_directory, mut ferdie, mut alice, account_infos) =
53525351
setup_evm_test_accounts(Sr25519Alice, true, Sr25519Alice).await;
@@ -5764,7 +5763,6 @@ async fn test_public_evm_rejects_allow_list_domain_owner_calls() {
57645763
}
57655764

57665765
#[tokio::test(flavor = "multi_thread")]
5767-
#[ignore]
57685766
async fn test_xdm_between_consensus_and_domain_should_work() {
57695767
let directory = TempDir::new().expect("Must be able to create temporary directory");
57705768

@@ -5923,7 +5921,6 @@ async fn test_xdm_between_consensus_and_domain_should_work() {
59235921
}
59245922

59255923
#[tokio::test(flavor = "multi_thread")]
5926-
#[ignore]
59275924
async fn test_xdm_between_domains_should_work() {
59285925
let directory = TempDir::new().expect("Must be able to create temporary directory");
59295926

@@ -6047,7 +6044,6 @@ async fn test_xdm_between_domains_should_work() {
60476044
}
60486045

60496046
#[tokio::test(flavor = "multi_thread")]
6050-
#[ignore]
60516047
async fn test_unordered_cross_domains_message_should_work() {
60526048
let directory = TempDir::new().expect("Must be able to create temporary directory");
60536049

@@ -7143,7 +7139,6 @@ async fn test_equivocated_bundle_check() {
71437139
}
71447140

71457141
#[tokio::test(flavor = "multi_thread")]
7146-
#[ignore]
71477142
async fn test_xdm_false_invalid_fraud_proof() {
71487143
let directory = TempDir::new().expect("Must be able to create temporary directory");
71497144

@@ -7617,7 +7612,6 @@ async fn test_custom_api_storage_root_match_upstream_root() {
76177612
}
76187613

76197614
#[tokio::test(flavor = "multi_thread")]
7620-
#[ignore]
76217615
async fn test_xdm_channel_allowlist_removed_after_xdm_initiated() {
76227616
let directory = TempDir::new().expect("Must be able to create temporary directory");
76237617

@@ -7695,7 +7689,6 @@ async fn test_xdm_channel_allowlist_removed_after_xdm_initiated() {
76957689
}
76967690

76977691
#[tokio::test(flavor = "multi_thread")]
7698-
#[ignore]
76997692
async fn test_xdm_channel_allowlist_removed_after_xdm_req_relaying() {
77007693
let directory = TempDir::new().expect("Must be able to create temporary directory");
77017694

@@ -7802,7 +7795,6 @@ async fn test_xdm_channel_allowlist_removed_after_xdm_req_relaying() {
78027795
}
78037796

78047797
#[tokio::test(flavor = "multi_thread")]
7805-
#[ignore]
78067798
async fn test_xdm_channel_allowlist_removed_after_xdm_resp_relaying() {
78077799
let directory = TempDir::new().expect("Must be able to create temporary directory");
78087800

@@ -7907,7 +7899,6 @@ async fn test_xdm_channel_allowlist_removed_after_xdm_resp_relaying() {
79077899
}
79087900

79097901
#[tokio::test(flavor = "multi_thread")]
7910-
#[ignore]
79117902
async fn test_xdm_transfer_below_existential_deposit() {
79127903
let directory = TempDir::new().expect("Must be able to create temporary directory");
79137904

@@ -7983,7 +7974,6 @@ async fn test_xdm_transfer_below_existential_deposit() {
79837974
}
79847975

79857976
#[tokio::test(flavor = "multi_thread")]
7986-
#[ignore]
79877977
async fn test_xdm_transfer_to_wrong_format_address() {
79887978
let directory = TempDir::new().expect("Must be able to create temporary directory");
79897979

@@ -8432,7 +8422,6 @@ async fn test_invalid_chain_reward_receipt() {
84328422
}
84338423

84348424
#[tokio::test(flavor = "multi_thread")]
8435-
#[ignore]
84368425
async fn test_domain_total_issuance_match_consensus_chain_bookkeeping_with_xdm() {
84378426
let directory = TempDir::new().expect("Must be able to create temporary directory");
84388427

domains/service/src/domain.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -516,18 +516,18 @@ where
516516
.await?;
517517

518518
if is_authority {
519-
// let relayer_worker = domain_client_message_relayer::worker::start_relaying_messages(
520-
// domain_id,
521-
// consensus_client.clone(),
522-
// client.clone(),
523-
// confirmation_depth_k,
524-
// // domain relayer will use consensus chain sync oracle instead of domain sync oracle
525-
// // since domain sync oracle will always return `synced` due to force sync being set.
526-
// domain_sync_oracle.clone(),
527-
// gossip_message_sink.clone(),
528-
// );
529-
//
530-
// spawn_essential.spawn_essential_blocking("domain-relayer", None, Box::pin(relayer_worker));
519+
let relayer_worker = domain_client_message_relayer::worker::start_relaying_messages(
520+
domain_id,
521+
consensus_client.clone(),
522+
client.clone(),
523+
confirmation_depth_k,
524+
// domain relayer will use consensus chain sync oracle instead of domain sync oracle
525+
// since domain sync oracle will always return `synced` due to force sync being set.
526+
domain_sync_oracle.clone(),
527+
gossip_message_sink.clone(),
528+
);
529+
530+
spawn_essential.spawn_essential_blocking("domain-relayer", None, Box::pin(relayer_worker));
531531

532532
let channel_update_worker =
533533
domain_client_message_relayer::worker::gossip_channel_updates::<_, _, CBlock, _>(

0 commit comments

Comments
 (0)