From 20fa9eb7de15a01041e7eed4ca460ee772138bd5 Mon Sep 17 00:00:00 2001 From: Roland Sherwin Date: Tue, 23 Jan 2024 16:30:24 +0530 Subject: [PATCH 1/2] fix: use quic --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 19e5c276..91220e68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -439,7 +439,10 @@ impl TestnetDeploy { )?; let node_info = parse_output(output)?; - let multiaddr = format!("/ip4/{}/tcp/12000/p2p/{}", genesis_ip, node_info.peer_id); + let multiaddr = format!( + "/ip4/{genesis_ip}/udp/12000/quic-v1/p2p/{}", + node_info.peer_id + ); // The genesis_ip is obviously inside the multiaddr, but it's just being returned as a // separate item for convenience. Ok((multiaddr, genesis_ip)) From 040b99eae3f87c7e165ebdde1f94281dc4f708ad Mon Sep 17 00:00:00 2001 From: Roland Sherwin Date: Tue, 23 Jan 2024 18:35:36 +0530 Subject: [PATCH 2/2] fix: set current_node_count to 0 if it does not exists --- resources/ansible/roles/node/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/ansible/roles/node/tasks/main.yml b/resources/ansible/roles/node/tasks/main.yml index b94da601..45673c8e 100644 --- a/resources/ansible/roles/node/tasks/main.yml +++ b/resources/ansible/roles/node/tasks/main.yml @@ -70,8 +70,7 @@ - name: calculate number of nodes to add set_fact: - nodes_to_add: "{{ node_instance_count | int - current_node_count | int }}" - when: current_node_count is defined + nodes_to_add: "{{ node_instance_count | int - (current_node_count | default(0)) | int }}" - name: add node services become: True