From 00a3f172e2b6c3ca95ad1f01d42c5100b3d72187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=CC=81o=20Haf?= Date: Tue, 27 Aug 2024 20:26:42 +0200 Subject: [PATCH] add `testnet` support --- assets/compat/bitcoin.conf.template | 4 ++++ scripts/services/getConfig.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/assets/compat/bitcoin.conf.template b/assets/compat/bitcoin.conf.template index 0e21c21..0d4b371 100644 --- a/assets/compat/bitcoin.conf.template +++ b/assets/compat/bitcoin.conf.template @@ -203,4 +203,8 @@ acceptnonstddatacarrier=1 }} {{#IF !blkconstr.acceptnonstddatacarrier acceptnonstddatacarrier=0 +}} + +{{#IF advanced.testnet +testnet=1 }} \ No newline at end of file diff --git a/scripts/services/getConfig.ts b/scripts/services/getConfig.ts index f89ce9a..3be9ac0 100644 --- a/scripts/services/getConfig.ts +++ b/scripts/services/getConfig.ts @@ -518,6 +518,12 @@ export const getConfig: T.ExpectedExports.getConfig = async (effects) => { }, }, }, + testnet: { + type: "boolean", + name: "Testnet (EXPERIMENTAL)", + description: "Use testnet instead of mainnet", + default: false, + }, }, }, })(effects);