File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11extend-exclude = [
22 " resources/images/commander/src/test_framework" ,
33 " resources/images/exporter/authproxy.py" ,
4+ " resources/scenarios/signet_miner.py" ,
45 " src/test_framework/*" ,
56]
67line-length = 100
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def __init__(self):
1212 super ().__init__ ()
1313 self .network_dir = Path (os .path .dirname (__file__ )) / "data" / "signet"
1414 signer_data_path = Path (os .path .dirname (__file__ )) / "data" / "signet-signer.json"
15- with open (signer_data_path , "r" ) as f :
15+ with open (signer_data_path ) as f :
1616 self .signer_data = json .loads (f .read ())
1717
1818 def run_test (self ):
@@ -30,17 +30,23 @@ def setup_network(self):
3030
3131 def check_signet_miner (self ):
3232 self .warnet ("bitcoin rpc miner createwallet miner" )
33- self .warnet (f"bitcoin rpc miner importdescriptors '{ json .dumps (self .signer_data ['descriptors' ])} '" )
34- self .warnet (f"run resources/scenarios/signet_miner.py --tank=0 generate --min-nbits --address={ self .signer_data ['address' ]['address' ]} " )
33+ self .warnet (
34+ f"bitcoin rpc miner importdescriptors '{ json .dumps (self .signer_data ['descriptors' ])} '"
35+ )
36+ self .warnet (
37+ f"run resources/scenarios/signet_miner.py --tank=0 generate --min-nbits --address={ self .signer_data ['address' ]['address' ]} "
38+ )
3539
3640 def block_one ():
3741 for tank in ["tank-0001" , "tank-0002" ]:
3842 height = int (self .warnet (f"bitcoin rpc { tank } getblockcount" ))
3943 if height != 1 :
4044 return False
4145 return True
46+
4247 self .wait_for_predicate (block_one )
4348
49+
4450if __name__ == "__main__" :
4551 test = SignetTest ()
4652 test .run_test ()
You can’t perform that action at this time.
0 commit comments