File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments