mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-24 22:59:28 -05:00
Fixed missing byteorder argument in stamp value calculation. Fixes #21.
This commit is contained in:
parent
36f0c17c8b
commit
c9272c9218
@ -27,7 +27,7 @@ def stamp_value(workblock, stamp):
|
||||
value = 0
|
||||
bits = 256
|
||||
material = RNS.Identity.full_hash(workblock+stamp)
|
||||
i = int.from_bytes(material)
|
||||
i = int.from_bytes(material, byteorder="big")
|
||||
while ((i & (1 << (bits - 1))) == 0):
|
||||
i = (i << 1)
|
||||
value += 1
|
||||
|
Loading…
Reference in New Issue
Block a user