mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 13:37:24 +00:00
Allow setting the creation time for newly created keys (this is useful for testing)
This commit is contained in:
@@ -608,6 +608,8 @@ public class WalletTool {
|
||||
} else {
|
||||
// Freshly generated key.
|
||||
key = new ECKey();
|
||||
if (creationTimeSeconds > 0)
|
||||
key.setCreationTimeSeconds(creationTimeSeconds);
|
||||
}
|
||||
if (wallet.findKeyFromPubKey(key.getPubKey()) != null) {
|
||||
System.err.println("That key already exists in this wallet.");
|
||||
|
||||
Reference in New Issue
Block a user