mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
WalletApplication: remove deprecated method that returns NetworkParameters
This commit is contained in:
parent
2cee5a35e5
commit
e9e444a425
@ -25,7 +25,6 @@ import org.bitcoinj.base.BitcoinNetwork;
|
||||
import org.bitcoinj.base.ScriptType;
|
||||
import org.bitcoinj.base.internal.PlatformUtils;
|
||||
import org.bitcoinj.core.Context;
|
||||
import org.bitcoinj.core.NetworkParameters;
|
||||
import org.bitcoinj.kits.WalletAppKit;
|
||||
import org.bitcoinj.utils.AppDataDirectory;
|
||||
import org.bitcoinj.utils.BriefLogFormatter;
|
||||
@ -78,15 +77,6 @@ public abstract class WalletApplication implements AppDelegate {
|
||||
return applicationName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Parameters for network this wallet is running on
|
||||
* @deprecated Use {@link #network} (or {@link NetworkParameters#of} if you really need a {@link NetworkParameters}.)
|
||||
*/
|
||||
@Deprecated
|
||||
public NetworkParameters params() {
|
||||
return NetworkParameters.of(network);
|
||||
}
|
||||
|
||||
public BitcoinNetwork network() {
|
||||
return network;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user