Skip to content

Commit bb8550b

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#23209: test: Avoid RPC roundtrip in MiniWallet get_descriptor()
fa3ab7b test: Avoid RPC roundtrip in MiniWallet get_descriptor() (MarcoFalke) Pull request description: No need to call an RPC to calculate the checksum. ACKs for top commit: theStack: ACK fa3ab7b 🍂 Tree-SHA512: 2ab019bf7535d7a9fbf30f7e9f1c35f70b0e699e52a8218cbde636fbb0062f58809e750156d7e3cde2ec532023482a4fb26e8f0f2a18def5727cf13b432e3bfd
2 parents 66d11b1 + fa3ab7b commit bb8550b

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)