Skip to content

Commit

Permalink
Nits from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Nov 10, 2023
1 parent 84daf9b commit f83f564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ static int parse_script(buffer_t *in_buf,
if (token != TOKEN_MULTI_A && token != TOKEN_SORTEDMULTI_A) {
return WITH_ERROR(
-1,
"multi and sortedmulti can only be used legacy or segwit scripts");
"multi and sortedmulti can only be used in legacy or segwit scripts");
}
} else { // legacy or segwit scripts
if (token != TOKEN_MULTI && token != TOKEN_SORTEDMULTI) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_e2e_tapscripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_e2e_tapscript_multi_a_2of2(rpc, rpc_test_wallet, client: Client, specul
def test_e2e_tapscript_maxdepth(rpc, rpc_test_wallet, client: Client, speculos_globals: SpeculosGlobals, comm: Union[TransportClient, SpeculosClient], model: str):
# A taproot tree with maximum supported depth, where the internal key is in the deepest script

MAX_TAPTREE_POLICY_DEPTH = 4 if model == "nanos" else 9
MAX_TAPTREE_POLICY_DEPTH = 5 if model == "nanos" else 9

# Make the most unbalanced tree where each script is a simple pk()
parts = [f"pk(@{i}/**)" for i in range(1, MAX_TAPTREE_POLICY_DEPTH)]
Expand Down

0 comments on commit f83f564

Please sign in to comment.