aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-10-06 19:21:26 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-10-06 19:21:28 +0200
commitbb8550b7887db5c30bf363e98017421d20e93aa0 (patch)
tree033409095f91ea8345803fb5e70f5be2d91c2bb6
parent66d11b14357c474416181227e197406ca8fb5dee (diff)
parentfa3ab7b5b1d085b5ae4ef9ddaa6fb29ff1e06c28 (diff)
downloadbitcoin-bb8550b7887db5c30bf363e98017421d20e93aa0.tar.xz
Merge bitcoin/bitcoin#23209: test: Avoid RPC roundtrip in MiniWallet get_descriptor()
fa3ab7b5b1d085b5ae4ef9ddaa6fb29ff1e06c28 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 fa3ab7b5b1d085b5ae4ef9ddaa6fb29ff1e06c28 🍂 Tree-SHA512: 2ab019bf7535d7a9fbf30f7e9f1c35f70b0e699e52a8218cbde636fbb0062f58809e750156d7e3cde2ec532023482a4fb26e8f0f2a18def5727cf13b432e3bfd
-rw-r--r--test/functional/test_framework/wallet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py
index ef27cb3221..a0843b796a 100644
--- a/test/functional/test_framework/wallet.py
+++ b/test/functional/test_framework/wallet.py
@@ -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