diff --git a/src/common/wallet.c b/src/common/wallet.c index 2a83ef4c..e238a264 100644 --- a/src/common/wallet.c +++ b/src/common/wallet.c @@ -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) { diff --git a/tests/test_e2e_tapscripts.py b/tests/test_e2e_tapscripts.py index 9731ffba..8b204b84 100644 --- a/tests/test_e2e_tapscripts.py +++ b/tests/test_e2e_tapscripts.py @@ -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)]