return type is not optional anymore

This commit is contained in:
conduition committed 2026-06-27 01:15:28 +00:00
1 parent 86e7f9d4ca
commit 1325ccc7db
1 file changed
+1 -1
+1 -1
View File
@@ -130,7 +130,7 @@ def compute_merkle_root(tree: ScriptTree) -> str:
raise ValueError("Invalid tree node")
def compute_control_block(path: int, tree: ScriptTree) -> Optional[bytes]:
def compute_control_block(path: int, tree: ScriptTree) -> bytes:
"""
Compute the control block for a script leaf at a given position in the script tree.
The `path` argument encodes the position as follows.