Browse Source

rpc_init(): skip wallet initialization

The MMGen Project 10 months ago
parent
commit
c373ed7a2d

+ 1 - 1
mmgen_node_tools/data/version

@@ -1 +1 @@
-3.1.dev17
+3.2.dev0

+ 1 - 1
mmgen_node_tools/main_addrbal.py

@@ -118,7 +118,7 @@ async def main(req_addrs):
 	addrs = [CoinAddr(proto,addr) for addr in req_addrs]
 
 	from mmgen.rpc import rpc_init
-	rpc = await rpc_init(cfg)
+	rpc = await rpc_init(cfg,ignore_wallet=True)
 
 	height = await rpc.call('getblockcount')
 	Msg(f'{proto.coin} {proto.network.upper()} [height {height}]')

+ 1 - 1
mmgen_node_tools/main_blocks_info.py

@@ -164,7 +164,7 @@ async def main():
 
 	cls = JSONBlocksInfo if cfg.json else BlocksInfo
 
-	m = cls( cfg, cfg._args, await rpc_init(cfg) )
+	m = cls( cfg, cfg._args, await rpc_init(cfg,ignore_wallet=True) )
 
 	if m.fnames and not cfg.no_header:
 		m.print_header()

+ 1 - 1
mmgen_node_tools/main_feeview.py

@@ -205,7 +205,7 @@ async def main():
 	proto = cfg._proto
 
 	from mmgen.rpc import rpc_init
-	c = await rpc_init(cfg)
+	c = await rpc_init(cfg,ignore_wallet=True)
 
 	mempool = await c.call('getrawmempool',True)
 

+ 1 - 1
mmgen_node_tools/main_halving_calculator.py

@@ -68,7 +68,7 @@ async def main():
 	proto = cfg._proto
 
 	from mmgen.rpc import rpc_init
-	c = await rpc_init( cfg, proto )
+	c = await rpc_init( cfg, proto, ignore_wallet=True )
 
 	tip = await c.call('getblockcount')
 	assert tip > 1, 'block tip must be > 1'

+ 1 - 1
mmgen_node_tools/main_netrate.py

@@ -43,7 +43,7 @@ ERASE_LINE,CUR_UP = '\033[K','\033[1A'
 async def main():
 
 	from mmgen.rpc import rpc_init
-	c = await rpc_init(cfg)
+	c = await rpc_init(cfg,ignore_wallet=True)
 
 	async def get_data():
 		d = await c.call('getnettotals')

+ 1 - 1
mmgen_node_tools/main_peerblocks.py

@@ -37,7 +37,7 @@ async def main():
 	cfg = Config(opts_data=opts_data)
 
 	from mmgen.rpc import rpc_init
-	rpc = await rpc_init(cfg)
+	rpc = await rpc_init(cfg,ignore_wallet=True)
 
 	from .PeerBlocks import BlocksDisplay,PeersDisplay
 	blocks = BlocksDisplay(cfg)

+ 1 - 1
mmgen_node_tools/main_txfind.py

@@ -63,7 +63,7 @@ async def main(txid):
 		msg(f'TxID: {txid}')
 
 	from mmgen.rpc import rpc_init
-	c = await rpc_init(cfg)
+	c = await rpc_init(cfg,ignore_wallet=True)
 
 	exitval = 0
 	try:

+ 3 - 2
test/test_py_d/ts_regtest.py

@@ -132,8 +132,9 @@ class TestSuiteRegtest(TestSuiteBase):
 		return self.netrate( ['--help'], 'USAGE:.*' )
 
 	def netrate2(self):
-		t = self.netrate( [], 'sent:.*' )
-		t.kill(2)
+		t = self.netrate( [], r'sent:.*' )
+		t.kill(15)
+		t.req_exit_val = -15
 		return t
 
 	def halving_calculator(self,add_args,expect_list):