Skip to content

Commit 4bd214e

Browse files
committed
test: adjust commentary, ensure cb private key is "inactive" descriptor
1 parent 8eb5d4a commit 4bd214e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/wallet_mnemonicbits.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ def run_test(self):
4040
found_in_encrypted = 0
4141
for desc in descriptors:
4242
if 'mnemonic' not in desc:
43+
assert not desc['active']
4344
# skip imported coinbase private key
4445
continue
4546
assert_equal(len(desc['mnemonic'].split()), 12)
4647
mnemonic_count += 1
4748
if desc['mnemonic'] == mnemonic_pre:
4849
found_in_encrypted += 1
4950
assert desc['active']
50-
# there should 5 descriptors in total
51-
# one of them imported private key for coinbase without mnemonic
52-
# encryption of descriptor wallet creates new private keys,
53-
# it should be 2 active and 2 inactive mnemonics
51+
# there should 3 descriptors in total
52+
# one of them is inactive imported private key for coinbase. It has no mnemonic without mnemonic
53+
# two other should be active and have mnemonic
5454
assert_equal(found_in_encrypted, 2)
5555
assert_equal(mnemonic_count, 2)
5656
assert_equal(len(descriptors), 3)

0 commit comments

Comments
 (0)