mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
smt.py: add missing check for position
This commit is contained in:
@@ -98,5 +98,6 @@ for bit, other_node in zip(bits, path):
|
|||||||
nodes = (other_node, node) if bit else (node, other_node)
|
nodes = (other_node, node) if bit else (node, other_node)
|
||||||
node = hash_node(*nodes)
|
node = hash_node(*nodes)
|
||||||
assert root == node
|
assert root == node
|
||||||
|
assert pos == 5
|
||||||
print("Passed")
|
print("Passed")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user