Skip to content

Commit

Permalink
[node] Add support for the signet network
Browse files Browse the repository at this point in the history
The current implementation of the Nakamoto node does
not support the signet network. This commit introduces
signet network support through the command line.

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Jun 30, 2023
1 parent 9621ab7 commit 9b24b04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ pub struct Options {
#[argh(switch)]
pub testnet: bool,

/// use the bitcoin signet network (default: false)
#[argh(switch)]
pub signet: bool,

/// only connect to IPv4 addresses (default: false)
#[argh(switch, short = '4')]
pub ipv4: bool,
Expand Down Expand Up @@ -51,6 +55,8 @@ fn main() {

let network = if opts.testnet {
Network::Testnet
} else if opts.signet {
Network::Signet
} else {
Network::Mainnet
};
Expand Down

0 comments on commit 9b24b04

Please sign in to comment.