Skip to content

Commit fa3ab7b

Browse files
author
MarcoFalke
committed
test: Avoid RPC roundtrip in MiniWallet get_descriptor()
1 parent 66d11b1 commit fa3ab7b

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
@@ -10,6 +10,7 @@
1010
from random import choice
1111
from typing import Optional
1212
from test_framework.address import ADDRESS_BCRT1_P2WSH_OP_TRUE
13+
from test_framework.descriptors import descsum_create
1314
from test_framework.key import ECKey
1415
from test_framework.messages import (
1516
COIN,
@@ -118,7 +119,7 @@ def generate(self, num_blocks):
118119
return blocks
119120

120121
def get_descriptor(self):
121-
return self._test_node.getdescriptorinfo(f'raw({self._scriptPubKey.hex()})')['descriptor']
122+
return descsum_create(f'raw({self._scriptPubKey.hex()})')
122123

123124
def get_address(self):
124125
return self._address

0 commit comments

Comments
 (0)