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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user