From e2e72a275d47fc4ce3dabcb65373412f9e458900 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 11 Jun 2013 22:52:54 +0200 Subject: [PATCH] Fix deserialization of wallet transactions with a far-out locktime. --- .../java/com/google/bitcoin/store/WalletProtobufSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java b/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java index 714532d7..461c4554 100644 --- a/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java +++ b/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java @@ -457,7 +457,7 @@ public class WalletProtobufSerializer { } if (txProto.hasLockTime()) { - tx.setLockTime(txProto.getLockTime()); + tx.setLockTime(0xffffffffL & txProto.getLockTime()); } // Transaction should now be complete.