LegacyAddress: Deprecate getHash160().

This commit is contained in:
Andreas Schildbach
2018-02-28 17:01:56 +01:00
parent e11119b64f
commit c0d8039c82
10 changed files with 30 additions and 29 deletions

View File

@@ -1465,7 +1465,7 @@ public class WalletTool {
} else {
try {
LegacyAddress address = LegacyAddress.fromBase58(wallet.getParams(), addr);
key = wallet.findKeyFromPubHash(address.getHash160());
key = wallet.findKeyFromPubHash(address.getHash());
} catch (AddressFormatException e) {
System.err.println(addr + " does not parse as a Bitcoin address of the right network parameters.");
return;