Wallet: Add findKeyFromAddress() convenience method.

This commit is contained in:
Andreas Schildbach
2019-02-01 17:12:35 +01:00
parent 68c5a622d2
commit 492b3c7f8d
2 changed files with 13 additions and 1 deletions

View File

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