From 739394df18a33f22ada13e075359f1b8a19f5502 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Wed, 6 Oct 2021 14:55:00 +0200 Subject: [PATCH] merge bitcoin#23209: Avoid RPC roundtrip in MiniWallet get_descriptor() --- test/functional/test_framework/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index 2007d21f71..0e973611bc 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -8,6 +8,7 @@ from copy import deepcopy from decimal import Decimal from enum import Enum from test_framework.address import ADDRESS_BCRT1_P2SH_OP_TRUE +from test_framework.descriptors import descsum_create from test_framework.key import ECKey from random import choice from typing import Optional @@ -124,7 +125,7 @@ class MiniWallet: return blocks def get_descriptor(self): - return self._test_node.getdescriptorinfo(f'raw({self._scriptPubKey.hex()})')['descriptor'] + return descsum_create(f'raw({self._scriptPubKey.hex()})') def get_address(self): return self._address