3999dd203c
mmgen-autosign: help text fixes, add security note
2023-04-20 17:07:35 +00:00
2b6e5566e5
main_wallet.py: add --passwd-file-new-only option
2023-04-20 17:07:35 +00:00
853d4ee29e
autosign,xmrwallet: minor fixes and cleanups
2023-04-20 17:07:34 +00:00
686fdfcc72
mmgen-autosign: use default wallet as autosign wallet by default
2023-04-18 18:35:59 +00:00
c4f0954614
autosign,xmrwallet: various fixes and cleanups
2023-04-18 18:35:58 +00:00
8e541ebf95
addrlist.py: self.get_file() -> self.file
2023-04-18 18:35:58 +00:00
005e4df538
mmgen-xmrwallet: support current param to --restore-height
2023-04-18 18:35:58 +00:00
b606b47fcc
update Monero daemon support to v0.18.2.2
2023-04-18 18:35:57 +00:00
ca8657d4cd
autosign,xmrwallet: various fixes and cleanups
2023-04-18 18:35:57 +00:00
1996ecab4a
autosign.py: new Signable class
2023-04-18 18:35:57 +00:00
d757bb2949
mmgen-autosign: add --wallet-dir opt; update test
2023-04-18 18:35:56 +00:00
1682bd16d3
autosign,xmrwallet: various fixes and cleanups
2023-04-18 18:35:56 +00:00
ec8b7656f1
xmrwallet.py: uarg.op -> self.name
2023-04-18 18:35:56 +00:00
a19db1858a
new AutosignConfig class
2023-04-18 18:35:55 +00:00
b80a69dd92
mmgen-autosign: move mountpoint /mnt/tx to /mnt/mmgen_autosign
2023-04-18 18:35:55 +00:00
7b56d5bb2d
mmgen-autosign: reimplement using new Autosign class
2023-04-18 18:35:55 +00:00
1dd08cd80a
test.py, autosign, xmrwallet: minor fixes and cleanups
2023-04-18 18:35:54 +00:00
6cf89a85e4
xmrwallet: uopt -> self.cfg
2023-04-18 18:35:54 +00:00
df7167d093
xmrwallet: a few minor cleanups
2023-04-18 18:35:54 +00:00
dc685e9ced
mmgen-keygen: new viewkey-address file type
...
Generate using the --viewkeys option
Testing:
$ test/unit_tests.py --verbose addrlist.viewkeyaddr
$ test/tooltest2.py --fork --verbose --coin=xmr viewkeyaddrfile_chksum
$ test/test.py -e ref_viewkeyaddrfile_gen_xmr ref_viewkeyaddrfile_chk_xmr
2023-04-18 18:35:53 +00:00
50434eabb6
addrfile.py: header fixes, cleanups
2023-04-18 18:35:53 +00:00
af97327541
test.py ref ref_altcoin: minor cleanups
2023-04-18 18:35:52 +00:00
2cc1fd282c
test.py autosign: relocate do_sign() method to base class
2023-04-18 18:35:52 +00:00
de8f6f34d1
cfg.py: cleanups, improve options checking
2023-04-06 09:14:30 +00:00
e178bdc732
proto.eth: class rename: TokenResolve -> ResolvedToken
2023-04-06 09:13:57 +00:00
e90e25b2f0
Config API, Part II
...
This patch completes the implementation of the API, making the entire MMGen
code base usable as a library for external projects. A usage example can be
found in the script `examples/coin-daemon-info.py`.
Testing:
$ test/test.py -e coin_daemon_info
2023-04-04 16:04:13 +00:00
bac47a6a0a
rpc_init(): make proto a keyword parameter
2023-04-04 16:04:13 +00:00
d4db9b0409
proto.eth.daemon: use port offset for test suite only
2023-04-04 16:04:13 +00:00
5dac884a39
class Lockable: _lock -> _locked, lock() -> _lock()
2023-04-04 16:04:12 +00:00
f1b427fd9c
scripts/exec_wrapper.py: sys -> exec_wrapper_sys
2023-04-04 16:04:12 +00:00
1ba9733199
a few minor fixes and cleanups
2023-04-04 16:04:12 +00:00
286105b73a
opts.py: remove show_common_opts_diff()
2023-04-04 16:04:11 +00:00
d81d82fe35
cfg.py: prefix internally used attrs with underscore
2023-04-04 16:04:11 +00:00
ce6df33827
opts.py: minor renames
2023-04-04 16:04:11 +00:00
9e1935ad19
opts.init() -> Config()
2023-04-04 16:04:10 +00:00
3896293652
minor cleanups
2023-04-04 16:04:10 +00:00
93bcc92534
globalvars.py -> cfg.py
2023-04-04 16:04:10 +00:00
e52588b5af
term.py: register_cleanup() fix
2023-04-04 16:04:09 +00:00
b8bf2c7df2
test.py regtest: test scroll interface for tw views
2023-04-04 16:04:09 +00:00
2e68cc095b
license message bugfix and test
2023-04-01 12:25:28 +00:00
c7adb56e38
Config API, Part I
...
This patch eliminates the global configuration variables `opt` and `g`, making
all functions and class instances locally configurable. Configuration data is
passed to functions and constructors via the `cfg` parameter and made available
to methods in `self.cfg`.
Local configuration free from dependence on the command line will enable the
creation of multiple, independently configured instances of MMGen’s data
objects within a single process.
Potential applications include testing (tracking wallets configured to interact
with spawned processes, for example) and the use of MMGen as a library for
other projects.
This patch completes most of the work required to enable the API. The full
implementation will appear in a forthcoming commit.
2023-03-28 18:14:37 +00:00
6cd8856912
minor whitespace, cleanups
2023-03-28 18:14:37 +00:00
5adf17a85f
globalvars.GlobalConfig: reorder attributes
2023-03-28 18:14:37 +00:00
c3ce1ab8e3
globalvars.py: new GlobalConstants (gc), GlobalVars (gv) classes
...
- The attributes of GlobalConstants are non-configurable. They’re constant
for a given machine, user, executable and MMGen release.
- The attributes of GlobalVars, `stderr` and `stdout`, are used by the test
suite to redirect msg() and friends to /dev/null.
- All the aforementioned attributes formerly belonged to GlobalConfig.
2023-03-28 18:14:36 +00:00
19f0730913
crypto.py: reimplement as class
2023-03-27 10:50:38 +00:00
795b653c6d
cfgfile.py: cleanups
2023-03-27 10:50:38 +00:00
5e55b4f155
cfgfile.py: rename virtual classes
2023-03-27 10:50:37 +00:00
e82a3cb8c7
altcoin.py: improve opts handling
2023-03-27 10:50:37 +00:00
9eab15dc6e
mn_entry.py: check configured mnemonic entry modes at runtime
2023-03-27 10:50:37 +00:00
158bc24716
fileutil.py: reimplement get_lines_from_file()
2023-03-27 10:50:18 +00:00