common: Chainparams for testnet4 support
The BIP70 name given as testnet4 to correspond with chaininfo value.
This commit is contained in:
@@ -336,6 +336,9 @@ struct configvar **initial_config_opts(const tal_t *ctx,
|
||||
opt_register_early_noarg("--testnet",
|
||||
opt_set_specific_network, "testnet",
|
||||
"Alias for --network=testnet");
|
||||
opt_register_early_noarg("--testnet4",
|
||||
opt_set_specific_network, "testnet4",
|
||||
"Alias for --network=testnet4");
|
||||
opt_register_early_noarg("--signet",
|
||||
opt_set_specific_network, "signet",
|
||||
"Alias for --network=signet");
|
||||
|
||||
@@ -775,11 +775,11 @@ struct command_result *param_secrets_array(struct command *cmd,
|
||||
|
||||
/**
|
||||
* segwit_addr_net_decode - Try to decode a Bech32(m) address and detect
|
||||
* testnet/mainnet/regtest/signet
|
||||
* testnet/mainnet/regtest/signet/testnet4
|
||||
*
|
||||
* This processes the address and returns a string if it is a Bech32
|
||||
* address specified by BIP173 or Bech32m as by BIP350. The string is
|
||||
* set whether it is testnet or signet (both "tb"), mainnet ("bc"),
|
||||
* set whether it is testnet/testnet4/signet ("tb"), mainnet ("bc"),
|
||||
* regtest ("bcrt"). It does not check witness version and program size
|
||||
* restrictions.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user