rpc_init(): skip wallet initialization
This commit is contained in:
parent
a1beac67e2
commit
c373ed7a2d
9 changed files with 11 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
3.1.dev17
|
||||
3.2.dev0
|
||||
|
|
|
|||
|
|
@ -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}]')
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue