From 6245f0f23260a88eae3f4070b6a70b15933467c2 Mon Sep 17 00:00:00 2001
From: sneurlax <sneurlax@gmail.com>
Date: Fri, 14 Oct 2022 18:48:00 -0500
Subject: [PATCH 1/2] Add template/default SimpleSwap API key const

a
---
 scripts/prebuild.sh | 2 +-
 scripts/setup.sh    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 scripts/prebuild.sh

diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh
old mode 100644
new mode 100755
index 31acfa82c..d24076666
--- a/scripts/prebuild.sh
+++ b/scripts/prebuild.sh
@@ -2,5 +2,5 @@
 KEYS=../lib/external_api_keys.dart
 if ! test -f "$KEYS"; then
     echo 'prebuild.sh: creating template lib/external_api_keys.dart file'
-    echo 'const kChangeNowApiKey = "";' > $KEYS
+    printf 'const kChangeNowApiKey = "";\nconst kSimpleSwapApiKey = "";' > $KEYS
 fi
diff --git a/scripts/setup.sh b/scripts/setup.sh
index f65e6640f..5525d7814 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -29,7 +29,7 @@ git submodule update --init --recursive
 KEYS="$HOME/projects/stack_wallet/lib/external_api_keys.dart"
 if ! test -f "$KEYS"; then
     echo 'prebuild.sh: creating template lib/external_api_keys.dart file'
-    echo 'const kChangeNowApiKey = "";' > $KEYS
+    printf 'const kChangeNowApiKey = "";\nconst kSimpleSwapApiKey = "";' > $KEYS
 fi
 
 #install stack wallet dependencies

From c0e143b89b9e5eb6a048d88809b7fa85c8d069cb Mon Sep 17 00:00:00 2001
From: Dan Miller <dan@cypherstack.com>
Date: Tue, 18 Oct 2022 07:58:42 -0700
Subject: [PATCH 2/2] Change default bitcoincash testnet electrum node to
 stackwallet.

---
 lib/utilities/default_nodes.dart | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/utilities/default_nodes.dart b/lib/utilities/default_nodes.dart
index 2ffd6f307..b09787d33 100644
--- a/lib/utilities/default_nodes.dart
+++ b/lib/utilities/default_nodes.dart
@@ -159,8 +159,8 @@ abstract class DefaultNodes {
       );
 
   static NodeModel get bitcoincashTestnet => NodeModel(
-        host: "testnet.hsmiths.com",
-        port: 53012,
+        host: "bitcoincash-testnet.stackwallet.com",
+        port: 60002,
         name: defaultName,
         id: _nodeId(Coin.bitcoincashTestnet),
         useSSL: true,