mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin#23209: Avoid RPC roundtrip in MiniWallet get_descriptor()
This commit is contained in:
parent
c96b9aa3d9
commit
739394df18
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user