connector
This commit is contained in:
parent
2b36708b7d
commit
9970eb0b02
@ -845,10 +845,9 @@ def get_stream(stream):
|
|||||||
return stream
|
return stream
|
||||||
|
|
||||||
|
|
||||||
def decode_block_tx(block, height):
|
def decode_block_tx(block):
|
||||||
s = get_stream(block)
|
s = get_stream(block)
|
||||||
b = dict()
|
b = dict()
|
||||||
b["height"] = height
|
|
||||||
b["version"] = unpack("<L", s.read(4))[0]
|
b["version"] = unpack("<L", s.read(4))[0]
|
||||||
b["versionHex"] = pack(">L", b["version"]).hex()
|
b["versionHex"] = pack(">L", b["version"]).hex()
|
||||||
b["previousBlockHash"] = rh2s(s.read(32))
|
b["previousBlockHash"] = rh2s(s.read(32))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user