whitespace (3 files)

This commit is contained in:
The MMGen Project 2025-09-23 09:20:53 +00:00
commit df5d6e3bce
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 12 additions and 7 deletions

View file

@ -75,12 +75,12 @@ elif invoked_as == 'seedsplit':
opts_data = {
'filter_codes': {
# Write In-fmt Out-fmt Keep-pass Force-update Master-share passwd-file-New-only
'chk': ['-', 'i'],
'conv': ['-', 'w', 'i', 'o', 'k', 'n'],
'gen': ['-', 'w', 'o'],
'passchg': ['-', 'w', 'i', 'k', 'f', 'n'],
'seedsplit': ['-', 'w', 'i', 'o', 'm', 'n'],
'subgen': ['-', 'w', 'i', 'o', 'k', 'n'],
'chk': ['-', 'i' ],
'conv': ['-', 'w', 'i', 'o', 'k', 'n'],
'gen': ['-', 'w', 'o' ],
'passchg': ['-', 'w', 'i', 'k', 'f', 'n'],
'seedsplit': ['-', 'w', 'i', 'o', 'm', 'n'],
'subgen': ['-', 'w', 'i', 'o', 'k', 'n'],
}[invoked_as],
'text': {
'desc': desc,

View file

@ -29,16 +29,19 @@ class OpRestore(OpCreate):
async def process_wallet(self, d, fn, last):
def get_dump_data():
def gen():
for fn in [self.get_wallet_fn(d, watch_only=wo) for wo in (True, False)]:
ret = fn.parent / (fn.name + '.dump')
if ret.exists():
yield ret
dump_fns = tuple(gen())
if not dump_fns:
die(1, f"No suitable dump file found for '{fn}'")
elif len(dump_fns) > 1:
ymsg(f"Warning: more than one dump file found for '{fn}' - using the first!")
return MoneroWalletDumpFile.Completed(
parent = self,
fn = dump_fns[0]).data._asdict()['wallet_metadata']

View file

@ -31,7 +31,9 @@ opts_data = {
},
}
cfg = Config(opts_data=opts_data, init_opts={'skip_cfg_file': True})
cfg = Config(
opts_data = opts_data,
init_opts = {'skip_cfg_file': True})
from test.overlay import get_overlay_tree_dir
overlay_tree_dir = get_overlay_tree_dir(repo_root)