mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +00:00
DumpedPrivateKey: Don't dump private key into exception message, even if it's likely invalid anyway.
This commit is contained in:
@@ -52,7 +52,7 @@ public class DumpedPrivateKey extends PrefixedChecksummedBytes {
|
||||
for (NetworkParameters p : Networks.get())
|
||||
if (version == p.getDumpedPrivateKeyHeader())
|
||||
return new DumpedPrivateKey(p, bytes);
|
||||
throw new AddressFormatException("No network found for " + base58);
|
||||
throw new AddressFormatException("No network found for version " + version);
|
||||
} else {
|
||||
if (version == params.getDumpedPrivateKeyHeader())
|
||||
return new DumpedPrivateKey(params, bytes);
|
||||
|
Reference in New Issue
Block a user