mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
test: Avoid RPC roundtrip in MiniWallet get_descriptor()
This commit is contained in:
parent
66d11b1435
commit
fa3ab7b5b1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue