mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
TransactionOutput: remove deprecated getAddressFrom* methods
Remove deprecated `getAddressFromP2PKHScript()` and `getAddressFromP2SH()` methods They have been deprecated for more than one release.
This commit is contained in:
parent
13aee43443
commit
9c30bab375
@ -128,23 +128,6 @@ public class TransactionOutput extends ChildMessage {
|
||||
return scriptPubKey;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public LegacyAddress getAddressFromP2PKHScript(NetworkParameters params) throws ScriptException {
|
||||
if (ScriptPattern.isP2PKH(getScriptPubKey()))
|
||||
return LegacyAddress.fromPubKeyHash(params,
|
||||
ScriptPattern.extractHashFromP2PKH(getScriptPubKey()));
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public LegacyAddress getAddressFromP2SH(NetworkParameters params) throws ScriptException {
|
||||
if (ScriptPattern.isP2SH(getScriptPubKey()))
|
||||
return LegacyAddress.fromScriptHash(params, ScriptPattern.extractHashFromP2SH(getScriptPubKey()));
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void parse() throws ProtocolException {
|
||||
value = readInt64();
|
||||
|
Loading…
Reference in New Issue
Block a user