Skip to content

Commit

Permalink
add testnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
Retropex committed Aug 27, 2024
1 parent 4e6af47 commit 155928d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/compat/bitcoin.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
## bitcoin.conf configuration file. Lines beginning with # are comments.
##

{{#IF testnet
chain=testnet
port=8333
rpcport=8332
}}

## RPC
{{#IF rpc.enable
{{#IF advanced.pruning.mode = "automatic"
Expand Down
6 changes: 6 additions & 0 deletions scripts/services/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 155928d

Please sign in to comment.