@@ -59,6 +59,9 @@ def setup_network(self, split=False):
5959 blockscript = hexlify (script ).decode ('ascii' )
6060 print ('blockscript' , blockscript )
6161 print ('wif' , wif )
62+ # raise Exception('aaa')
63+ blockscript = '4104db082f6133b7d9cdb7be60d8384c818ae61233c20485b438e8c1d7772b7f2dbdc04f2f7273d534df0e6a54c8b333994f6275bb921df2438e9a672438e4ed4969ac'
64+ wif = '8Hh8jNjkx1aSCgEk3iq9Vo2APZUSDQJVt3rJ2BRpb5Tavqb68vW'
6265
6366 # import hashlib, random, codecs
6467 # from test_framework import script, key, address
@@ -97,8 +100,7 @@ def setup_network(self, split=False):
97100 rpc_u , rpc_p = rpc_auth_pair (n )
98101 self .extra_args .append ([
99102 "-printtoconsole=0" ,
100- "-signet_blockscript=4104db082f6133b7d9cdb7be60d8384c818ae61233c20485b438e8c1d7772b7f2dbdc04f2f7273d534df0e6a54c8b333994f6275bb921df2438e9a672438e4ed4969ac" ,
101- # "-signet_blockscript=%s" % blockscript,
103+ "-signet_blockscript=%s" % blockscript ,
102104 "-signet_siglen=77" ,
103105 "-signet_seednode=178.128.221.177" ,
104106 "-port=" + str (p2p_port (n )),
@@ -125,8 +127,7 @@ def setup_network(self, split=False):
125127 self .binary = self .options .parent_binpath if self .options .parent_binpath != "" else None
126128 self .nodes .append (start_node (n , self .options .tmpdir , self .extra_args [n ], binary = self .binary , chain = self .parent_chain , cookie_auth = use_cookie_auth ))
127129 if self .options .parent_type == 'signet' :
128- self .nodes [n ].importprivkey ('8Hh8jNjkx1aSCgEk3iq9Vo2APZUSDQJVt3rJ2BRpb5Tavqb68vW' )
129- # self.nodes[n].importprivkey(wif)
130+ self .nodes [n ].importprivkey (wif )
130131
131132 connect_nodes_bi (self .nodes , 0 , 1 )
132133 self .parentgenesisblockhash = self .nodes [0 ].getblockhash (0 )
0 commit comments