test: use ExtendedPrivateKey in feature_notifications.py

This commit is contained in:
rkrux
2026-06-17 14:40:01 +05:30
parent f988e6d6e6
commit 003f2a01f6

View File

@@ -11,6 +11,7 @@ from test_framework.blocktools import (
create_block,
)
from test_framework.descriptors import descsum_create
from test_framework.extendedkey import ExtendedPrivateKey
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
@@ -74,7 +75,7 @@ class NotificationsTest(BitcoinTestFramework):
def run_test(self):
if self.is_wallet_compiled():
# Setup the descriptors to be imported to the wallet
xpriv = "tprv8ZgxMBicQKsPfHCsTwkiM1KT56RXbGGTqvc2hgqzycpwbHqqpcajQeMRZoBD35kW4RtyCemu6j34Ku5DEspmgjKdt2qe4SvRch5Kk8B8A2v"
xpriv = ExtendedPrivateKey.generate().to_string()
desc_imports = [{
"desc": descsum_create(f"wpkh({xpriv}/0/*)"),
"timestamp": 0,