mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +00: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 {
|
} else {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
if (wallet.findKeyFromPubKey(key.getPubKey()) != null) {
|
if (wallet.hasKey(key)) {
|
||||||
System.err.println("That key already exists in this wallet.");
|
System.err.println("That key already exists in this wallet.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user