Commit graph

20 commits

Author SHA1 Message Date
f840069ecb
update copyright dates 2026-02-11 13:02:12 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
f9e6d994f0
whitespace: test/misc 2024-10-18 10:32:13 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
8e46932475
update copyright dates 2024-01-19 11:05:10 +00:00
7e8f3ab7b5
pylint (test suite) - bugfixes 2023-10-11 12:58:53 +00:00
7b32c412d5
pylint (test suite) - imports 2023-10-11 12:58:51 +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
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
23457774e2
BTC-only testing fixes 2022-05-03 21:01:05 +00:00
7558c539a1
modularize coin protocols
- protocols are now in individual modules under `proto`
2022-01-29 11:25:10 +00:00
341ee2c741
modularize the 'mmgen-tool' utility
- each command group now has its own module under the `tool` directory
- only modules required by a given command are loaded
- code used only by the command-line tool has been relocated to `main_tool.py`
2022-01-24 19:33:02 +00:00
545406aea4
addr.py: move PubKey and PrivKey to key.py 2022-01-15 14:00:08 +00:00
1a896d9af9
update copyright dates 2022-01-04 19:51:22 +00:00
3a2cb6f551
minor fixes and cleanups 2021-10-03 17:40:02 +00:00
cb7f38370b
Update copyright dates 2021-02-19 20:09:06 +03:00
c7dbdfe756
rewrite tool API test 2020-06-09 09:20:17 +00:00
7412bf56ef
tool.py: fix tool API; test.py: add tool_api test, minor fixes 2020-06-08 17:03:21 +00:00