Skip to content

Commit f95af12

Browse files
committed
fix
1 parent f309005 commit f95af12

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

qa/rpc-tests/feature_fedpeg.py

+7-23
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,13 @@ def setup_network(self, split=False):
6464
# addr = temp_node.getnewaddress()
6565
# k = key.CECKey()
6666
# pub = temp_node.validateaddress(addr)["pubkey"]
67-
# print('pub', pub)
6867
# k.set_pubkey(hex_str_to_bytes(pub))
6968
# pubkey = key.CPubKey(k.get_pubkey())
7069
# wif = temp_node.dumpprivkey(addr)
7170
# stop_node(temp_node, 0)
72-
# datadir = os.path.join(self.options.tmpdir, 'node0', 'signet')
73-
# print('datadir', datadir)
74-
# shutil.rmtree(datadir)
71+
# shutil.rmtree(os.path.join(self.options.tmpdir, 'node0', 'signet'))
72+
# script = script.CScript([pubkey, script.OP_CHECKSIG])
73+
# blockscript = hexlify(script).decode('ascii')
7574

7675
import hashlib, random, codecs
7776
from test_framework import script, key, address
@@ -83,27 +82,12 @@ def setup_network(self, split=False):
8382
pubkey = key.CPubKey(k.get_pubkey())
8483
script = script.CScript([pubkey, script.OP_CHECKSIG])
8584
blockscript = hexlify(script).decode('ascii')
86-
print('blockscript', blockscript)
87-
print('wif', wif)
88-
# raise Exception('aaa')
85+
8986
# blockscript = '4104db082f6133b7d9cdb7be60d8384c818ae61233c20485b438e8c1d7772b7f2dbdc04f2f7273d534df0e6a54c8b333994f6275bb921df2438e9a672438e4ed4969ac'
9087
# wif = '8Hh8jNjkx1aSCgEk3iq9Vo2APZUSDQJVt3rJ2BRpb5Tavqb68vW'
9188

92-
# import hashlib, random, codecs
93-
# from test_framework import script, key, address
94-
# k = key.CECKey()
95-
# pk_bytes = hashlib.sha256(str(random.getrandbits(256)).encode('utf-8')).digest()
96-
# k.set_secretbytes(pk_bytes)
97-
# w = address.byte_to_base58(pk_bytes, 217)
98-
# print("generated key {}: \n pub: {}\n wif: {}".format(n+1,
99-
# codecs.encode(k.get_pubkey(), 'hex_codec').decode("utf-8"),
100-
# w))
101-
# pubkey = key.CPubKey(k.get_pubkey())
102-
# script = script.CScript([pubkey, script.OP_CHECKSIG])
103-
# from binascii import hexlify
104-
# print('script', hexlify(script).decode('ascii'))
105-
# self.nodes[n].importprivkey(w)
106-
89+
# print('blockscript', blockscript)
90+
# print('wif', wif)
10791

10892
# Parent chain args
10993
for n in range(2):
@@ -190,7 +174,7 @@ def setup_network(self, split=False):
190174
'-con_parent_signet_siglen=77',
191175
'-parentpubkeyprefix=125',
192176
'-parentscriptprefix=87',
193-
'-con_parent_chain_signblockscript=4104db082f6133b7d9cdb7be60d8384c818ae61233c20485b438e8c1d7772b7f2dbdc04f2f7273d534df0e6a54c8b333994f6275bb921df2438e9a672438e4ed4969ac',
177+
'-con_parent_chain_signblockscript=%s' % blockscript,
194178
])
195179

196180
if used_cookie_auth:

0 commit comments

Comments
 (0)