1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-07-27 18:13:38 +00:00

return type is not optional anymore

This commit is contained in:
conduition
2026-06-27 01:15:28 +00:00
parent 86e7f9d4ca
commit 1325ccc7db

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.