3
0
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:
Mike Hearn 2014-10-23 15:42:05 +02:00
parent 9239387ca7
commit 6c5d51f55a

View File

@ -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);