mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 19:55:51 +00:00
Don't spam the log with setting key rotation time while loading wallets. Instead, print it with the wallet dump.
This commit is contained in:
parent
1db2316fc3
commit
acad3e985d
@ -2568,6 +2568,9 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
|||||||
|
|
||||||
// Do the keys.
|
// Do the keys.
|
||||||
builder.append("\nKeys:\n");
|
builder.append("\nKeys:\n");
|
||||||
|
final long keyRotationTime = vKeyRotationTimestamp * 1000;
|
||||||
|
if (keyRotationTime > 0)
|
||||||
|
builder.append(String.format("Key rotation time: %s\n", Utils.dateTimeFormat(keyRotationTime)));
|
||||||
builder.append(keychain.toString(includePrivateKeys));
|
builder.append(keychain.toString(includePrivateKeys));
|
||||||
|
|
||||||
if (!watchedScripts.isEmpty()) {
|
if (!watchedScripts.isEmpty()) {
|
||||||
@ -4383,9 +4386,6 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
|||||||
public void setKeyRotationTime(long unixTimeSeconds) {
|
public void setKeyRotationTime(long unixTimeSeconds) {
|
||||||
checkArgument(unixTimeSeconds <= Utils.currentTimeSeconds());
|
checkArgument(unixTimeSeconds <= Utils.currentTimeSeconds());
|
||||||
vKeyRotationTimestamp = unixTimeSeconds;
|
vKeyRotationTimestamp = unixTimeSeconds;
|
||||||
if (unixTimeSeconds > 0) {
|
|
||||||
log.info("Key rotation time set: {}", unixTimeSeconds);
|
|
||||||
}
|
|
||||||
saveNow();
|
saveNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user