File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
"""Test the importmulti RPC."""
6
6
7
- from test_framework import script
7
+ from test_framework .messages import sha256
8
+ from test_framework .script import (
9
+ CScript ,
10
+ OP_0 ,
11
+ OP_NOP ,
12
+ hash160
13
+ )
8
14
from test_framework .test_framework import BitcoinTestFramework
9
15
from test_framework .util import (
10
16
assert_equal ,
13
19
bytes_to_hex_str ,
14
20
hex_str_to_bytes
15
21
)
16
- from test_framework .script import (
17
- CScript ,
18
- OP_0 ,
19
- hash160
20
- )
21
- from test_framework .messages import sha256
22
22
23
23
class ImportMultiTest (BitcoinTestFramework ):
24
24
def set_test_params (self ):
@@ -112,7 +112,7 @@ def run_test(self):
112
112
113
113
# Nonstandard scriptPubKey + !internal
114
114
self .log .info ("Should not import a nonstandard scriptPubKey without internal flag" )
115
- nonstandardScriptPubKey = address ['scriptPubKey' ] + bytes_to_hex_str (script . CScript ([script . OP_NOP ]))
115
+ nonstandardScriptPubKey = address ['scriptPubKey' ] + bytes_to_hex_str (CScript ([OP_NOP ]))
116
116
address = self .nodes [0 ].getaddressinfo (self .nodes [0 ].getnewaddress ())
117
117
result = self .nodes [1 ].importmulti ([{
118
118
"scriptPubKey" : nonstandardScriptPubKey ,
You can’t perform that action at this time.
0 commit comments