File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 16
16
test that enforcement has triggered
17
17
"""
18
18
19
- from test_framework .blockstore import BlockStore
20
19
from test_framework .test_framework import ComparisonTestFramework
21
20
from test_framework .util import *
22
21
from test_framework .mininode import CTransaction , NetworkThread
Original file line number Diff line number Diff line change 12
12
from test_framework .test_framework import BitcoinTestFramework
13
13
from test_framework .util import *
14
14
import re
15
- import time
16
15
from test_framework .blocktools import create_block , create_coinbase
17
16
18
17
VB_PERIOD = 144 # versionbits period length for regtest
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def run_test (self):
39
39
40
40
# create an internal key
41
41
change_addr = self .nodes [1 ].getrawchangeaddress ()
42
- change_addrV = self .nodes [1 ].validateaddress (change_addr );
42
+ change_addrV = self .nodes [1 ].validateaddress (change_addr )
43
43
assert_equal (change_addrV ["hdkeypath" ], "m/0'/1'/0'" ) #first internal child key
44
44
45
45
# Import a non-HD private key in the HD wallet
@@ -67,7 +67,7 @@ def run_test (self):
67
67
68
68
# create an internal key (again)
69
69
change_addr = self .nodes [1 ].getrawchangeaddress ()
70
- change_addrV = self .nodes [1 ].validateaddress (change_addr );
70
+ change_addrV = self .nodes [1 ].validateaddress (change_addr )
71
71
assert_equal (change_addrV ["hdkeypath" ], "m/0'/1'/1'" ) #second internal child key
72
72
73
73
self .sync_all ()
@@ -97,7 +97,7 @@ def run_test (self):
97
97
98
98
# send a tx and make sure its using the internal chain for the changeoutput
99
99
txid = self .nodes [1 ].sendtoaddress (self .nodes [0 ].getnewaddress (), 1 )
100
- outs = self .nodes [1 ].decoderawtransaction (self .nodes [1 ].gettransaction (txid )['hex' ])['vout' ];
100
+ outs = self .nodes [1 ].decoderawtransaction (self .nodes [1 ].gettransaction (txid )['hex' ])['vout' ]
101
101
keypath = ""
102
102
for out in outs :
103
103
if out ['value' ] != 1 :
You can’t perform that action at this time.
0 commit comments