3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Add creationTimeSeconds to wallet dump.

This commit is contained in:
Andreas Schildbach 2014-12-17 10:49:29 +01:00
parent 3d7d649827
commit 1fae7cadc9
2 changed files with 4 additions and 0 deletions

View File

@ -1204,6 +1204,8 @@ public class ECKey implements EncryptableItem, Serializable {
builder.append(address.toString());
builder.append(" hash160:");
builder.append(Utils.HEX.encode(getPubKeyHash()));
if (creationTimeSeconds > 0)
builder.append(" creationTimeSeconds:").append(creationTimeSeconds);
builder.append("\n");
if (includePrivateKeys) {
builder.append(" ");

View File

@ -244,6 +244,8 @@ public class MarriedKeyChain extends DeterministicKeyChain {
builder.append(script.getToAddress(params));
builder.append(" hash160:");
builder.append(Utils.HEX.encode(script.getPubKeyHash()));
if (script.getCreationTimeSeconds() > 0)
builder.append(" creationTimeSeconds:").append(script.getCreationTimeSeconds());
builder.append("\n");
}