merge bitcoin#23209: Avoid RPC roundtrip in MiniWallet get_descriptor()

This commit is contained in:
Kittywhiskers Van Gogh 2021-10-06 14:55:00 +02:00
parent c96b9aa3d9
commit 739394df18
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -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