mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
WalletTool: Use Wallet.hasKey() rather than Wallet.findKeyFromPubKey().
This commit is contained in:
parent
58ca1d1d8c
commit
ac7a576b3d
@ -1435,7 +1435,7 @@ public class WalletTool {
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
if (wallet.findKeyFromPubKey(key.getPubKey()) != null) {
|
||||
if (wallet.hasKey(key)) {
|
||||
System.err.println("That key already exists in this wallet.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user