diff --git a/assets/compat/bitcoin.conf.template b/assets/compat/bitcoin.conf.template index 0e21c21..b50734a 100644 --- a/assets/compat/bitcoin.conf.template +++ b/assets/compat/bitcoin.conf.template @@ -2,6 +2,12 @@ ## bitcoin.conf configuration file. Lines beginning with # are comments. ## +{{#IF advanced.testnet +chain=test +port=8333 +rpcport=8332 +}} + ## RPC {{#IF rpc.enable {{#IF advanced.pruning.mode = "automatic" 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);