Skip to content

Commit 739394d

Browse files
committed
merge bitcoin#23209: Avoid RPC roundtrip in MiniWallet get_descriptor()
1 parent c96b9aa commit 739394d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/test_framework/wallet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from decimal import Decimal
99
from enum import Enum
1010
from test_framework.address import ADDRESS_BCRT1_P2SH_OP_TRUE
11+
from test_framework.descriptors import descsum_create
1112
from test_framework.key import ECKey
1213
from random import choice
1314
from typing import Optional
@@ -124,7 +125,7 @@ def generate(self, num_blocks):
124125
return blocks
125126

126127
def get_descriptor(self):
127-
return self._test_node.getdescriptorinfo(f'raw({self._scriptPubKey.hex()})')['descriptor']
128+
return descsum_create(f'raw({self._scriptPubKey.hex()})')
128129

129130
def get_address(self):
130131
return self._address

0 commit comments

Comments
 (0)