File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ def get_mnemonic(self, node):
25
25
descriptors = node .listdescriptors (True )['descriptors' ]
26
26
for desc in descriptors :
27
27
if desc ['desc' ][:4 ] == 'pkh(' :
28
- pass
29
28
if mnemonic is None :
30
29
mnemonic = desc ['mnemonic' ]
31
30
else :
@@ -67,10 +66,10 @@ def run_test(self):
67
66
assert desc ['mnemonic' ] == mnemonic_pre
68
67
assert desc ['active' ]
69
68
# there should 3 descriptors in total
70
- # one of them is inactive imported private key for coinbase. It has no mnemonic without mnemonic
71
- # two other should be active and have mnemonic
72
- assert_equal (mnemonic_count , 2 )
69
+ # One of them is inactive imported private key for coinbase. It has no mnemonic
70
+ # Two other should be active and have mnemonic
73
71
assert_equal (mnemonic_count , 2 )
72
+ assert_equal (cb_count , 1 )
74
73
assert_equal (len (descriptors ), 3 )
75
74
else :
76
75
assert_equal (len (self .nodes [0 ].dumphdinfo ()["mnemonic" ].split ()), 12 ) # 12 words by default
You can’t perform that action at this time.
0 commit comments