From f83f56411d9aec83e272ee8ca5ab98fd2cadba09 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:59:59 +0000 Subject: [PATCH] Nits from code review --- src/common/wallet.c | 2 +- tests/test_e2e_tapscripts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)]