rpc_init(): skip wallet initialization

This commit is contained in:
The MMGen Project 2023-07-01 16:47:49 +00:00
commit c373ed7a2d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
9 changed files with 11 additions and 10 deletions

View file

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

View file

@ -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}]')

View file

@ -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()

View file

@ -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)

View file

@ -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'

View file

@ -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')

View file

@ -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)

View file

@ -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:

View file

@ -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):