From 83d39b187b01294171ba79ee288c8c5834f55b7c Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 3 Mar 2016 16:38:00 +0100 Subject: [PATCH] Wallet: Print earliest key creation time in toString(). --- core/src/main/java/org/bitcoinj/core/Wallet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/bitcoinj/core/Wallet.java b/core/src/main/java/org/bitcoinj/core/Wallet.java index 91b0b9658..39c28c021 100644 --- a/core/src/main/java/org/bitcoinj/core/Wallet.java +++ b/core/src/main/java/org/bitcoinj/core/Wallet.java @@ -3165,9 +3165,11 @@ public class Wallet extends BaseTaggableObject // Do the keys. builder.append("\nKeys:\n"); + builder.append("Earliest creation time: ").append(Utils.dateTimeFormat(getEarliestKeyCreationTime() * 1000)) + .append('\n'); final Date keyRotationTime = getKeyRotationTime(); if (keyRotationTime != null) - builder.append("Key rotation time: ").append(Utils.dateTimeFormat(keyRotationTime)).append('\n'); + builder.append("Key rotation time: ").append(Utils.dateTimeFormat(keyRotationTime)).append('\n'); builder.append(keyChainGroup.toString(includePrivateKeys)); if (!watchedScripts.isEmpty()) {