From fa3ab7b5b1d085b5ae4ef9ddaa6fb29ff1e06c28 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 6 Oct 2021 14:55:00 +0200 Subject: test: Avoid RPC roundtrip in MiniWallet get_descriptor() --- test/functional/test_framework/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/functional/test_framework/wallet.py') diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index ef27cb3221..a0843b796a 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -10,6 +10,7 @@ from enum import Enum from random import choice from typing import Optional from test_framework.address import ADDRESS_BCRT1_P2WSH_OP_TRUE +from test_framework.descriptors import descsum_create from test_framework.key import ECKey from test_framework.messages import ( COIN, @@ -118,7 +119,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 -- cgit v1.2.3