Commit graph

35 commits

Author SHA1 Message Date
f840069ecb
update copyright dates 2026-02-11 13:02:12 +00:00
258f1b0236
various testing fixes 2025-09-11 17:37:04 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
487678bce9
Use Ruff static code analyzer for Github workflows 2024-12-30 13:59:03 +00:00
a3454c7248
disable rpc.stop_daemon() 2024-12-30 11:31:40 +00:00
3f5ce98fda
test suite: remove datadir after stopping daemons 2024-12-30 11:31:40 +00:00
6130efcf0c
whitespace: test/include 2024-10-18 10:32:12 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
f6843a3fcd
opts.py: refactor usage(), version(), show_hash_presets() 2024-10-08 12:56:00 +00:00
66521a07f2
update --longhelp text 2024-10-08 12:55:58 +00:00
8e46932475
update copyright dates 2024-01-19 11:05:10 +00:00
48636ff2e0
update headers: mmgen -> mmgen-wallet 2023-11-17 13:35:42 +00:00
a5766aae1d
minor cleanup, update for node tools 2023-11-05 13:41:32 +00:00
11b131fda8
pylint integration
Lint the entire MMGen Wallet code base, including test suite:

    # Install pylint:
    $ python3 -m pip install pylint

    # Perform the check:
    $ test/test-release.sh lint

The check should complete without error when running Python v3.9 or greater,
provided all required Python dependencies described in Test-Suite.md, including
altcoin dependencies, are installed.
2023-10-13 09:51:15 +00:00
a7e816f98e
test suite: make test scripts importable as modules 2023-10-13 09:51:14 +00:00
f2bf16bbdb
minor fixes and cleanups 2023-10-13 09:51:13 +00:00
aff850d1c8
test suite: import cleanups 2023-10-03 14:27:57 +00:00
31a6e62a24
test suite: sys.path, overlay, PYTHONPATH cleanups 2023-09-26 10:23:40 +00:00
3c549367fa
test/start-coin-daemons.py: add xmr wallet daemon support 2023-07-01 15:51:37 +00:00
371e22887d
autosign,daemon: minor cleanups 2023-07-01 15:51:36 +00:00
9e1935ad19
opts.init() -> Config() 2023-04-04 16:04:10 +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
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
1aeefd64ae
update copyright dates 2023-01-03 10:36:07 +00:00
20f4b12832
module docstring cleanups [134 files] 2022-11-14 09:54:07 +00:00
c74e15669b
util.py: run_session() -> async_run() 2022-10-17 18:37:23 +00:00
31f981ab97
BTC-only testing fix 2022-08-16 20:35:49 +00:00
2877e83821
unit_tests.py daemon: rewrite test using {start,stop}-coin-daemons.py 2022-06-13 17:30:22 +00:00
078dcc51f7
daemon.py: new methods: get_daemon(), get_daemon_ids() 2022-06-13 17:30:21 +00:00
074e2b2b74
daemon.py: new method: get_exec_version_str() 2022-06-13 17:30:21 +00:00
54f436c25a
opts.py: add check for --daemon-id 2022-06-13 17:30:21 +00:00
b9c96c5215
avoid use of globals() wherever practicable 2022-02-03 20:40:40 +00:00
35f9201174
stop Monero coin and wallet daemons via RPC 2021-10-10 20:18:16 +00:00
6692a43d59
f-strings, whitespace (test files) [44 files patched] 2021-09-29 21:17:57 +00:00
f6d313dbcb
{start,stop}-coin-daemons.py: reimplement to eliminate use of symlink 2021-09-23 21:15:33 +00:00