public class Networks
extends java.lang.Object
NetworkParameters
types used for address auto discovery.
By default only MainNetParams
and TestNet3Params
are used. If you want to use RegTestParams
or UnitTestParams
use register
and then unregister
the TestNet3Params
as they don't
have their own Base58 version/type code (although for SegwitAddress
the human readable
parts for RegTest and TestNet are different.)Constructor and Description |
---|
Networks() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<NetworkParameters> |
get() |
static void |
register(java.util.Collection<? extends NetworkParameters> networks)
Register a collection of additional network types by adding them
to the
Set . |
static void |
register(NetworkParameters network)
Register a single network type by adding it to the
Set . |
static void |
unregister(NetworkParameters network)
Unregister a network type.
|
public static java.util.Set<NetworkParameters> get()
public static void register(NetworkParameters network)
Set
.network
- Network to register/add.public static void register(java.util.Collection<? extends NetworkParameters> networks)
Set
.networks
- Networks to register/add.public static void unregister(NetworkParameters network)
network
- Network type to unregister/remove.