mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-14 23:37:51 +02:00
test: use ExtendedPrivateKey in feature_notifications.py
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user