Commit 10f0f3b4 authored by Moul's avatar Moul

[mod] Transaction.from_compact(): Remove version condition for blockstamp field

parent 95e253cd
...@@ -565,10 +565,8 @@ Comment: {comment} ...@@ -565,10 +565,8 @@ Comment: {comment}
locktime = int(header_data.group(7)) locktime = int(header_data.group(7))
n += 1 n += 1
blockstamp = None # type: Optional[BlockUID] blockstamp = BlockUID.from_str(Transaction.parse_field("CompactBlockstamp", lines[n]))
if version >= 3: n += 1
blockstamp = BlockUID.from_str(Transaction.parse_field("CompactBlockstamp", lines[n]))
n += 1
issuers = [] issuers = []
inputs = [] inputs = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment