mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
WalletTool: allow rotation time to be specified in seconds.
This commit is contained in:
parent
9239387ca7
commit
6c5d51f55a
@ -446,6 +446,8 @@ public class WalletTool {
|
||||
long rotationTimeSecs = Utils.currentTimeSeconds();
|
||||
if (options.has(dateFlag)) {
|
||||
rotationTimeSecs = options.valueOf(dateFlag).getTime() / 1000;
|
||||
} else if (options.has(unixtimeFlag)) {
|
||||
rotationTimeSecs = options.valueOf(unixtimeFlag);
|
||||
}
|
||||
log.info("Setting wallet key rotation time to {}", rotationTimeSecs);
|
||||
wallet.setKeyRotationTime(rotationTimeSecs);
|
||||
|
Loading…
Reference in New Issue
Block a user