mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
Add precondition message to Wallet.setKeyRotationTime().
This commit is contained in:
@@ -4796,7 +4796,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
||||
* <p>The given time cannot be in the future.</p>
|
||||
*/
|
||||
public void setKeyRotationTime(long unixTimeSeconds) {
|
||||
checkArgument(unixTimeSeconds <= Utils.currentTimeSeconds());
|
||||
checkArgument(unixTimeSeconds <= Utils.currentTimeSeconds(), "Given time (%s) cannot be in the future.",
|
||||
Utils.dateTimeFormat(unixTimeSeconds * 1000));
|
||||
vKeyRotationTimestamp = unixTimeSeconds;
|
||||
saveNow();
|
||||
}
|
||||
|
Reference in New Issue
Block a user