Commit graph

27 commits

Author SHA1 Message Date
f840069ecb
update copyright dates 2026-02-11 13:02:12 +00:00
eb7bcef036
util.py: reimplement async_run() (stub) 2025-10-01 15:30:57 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
747279c106
whitespace: examples 2024-10-18 10:32:11 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
50fc415282
CoinAmt: improvements
- do strict type checking in initializer, forbid double initialization
- add dynamic decimal precision based on protocol
- dunder method fixes, cleanups
- JSON-RPC library now returns floats (i.e. amounts) as strings instead of Decimal,
  eliminating an extra conversion step
2024-10-18 10:32:05 +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
dce9e25919
rpc_init(): skip tw initialization where possible 2023-07-03 12:42:49 +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
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
78e882143c
whitespace, cleanups, imports throughout [73 files changed] 2023-03-27 10:49:04 +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
59bffb59b2
CoinProtocol.Base: skip loading of .amt module via 'need_amt=False' 2022-01-29 11:25:03 +00:00
8e457707f0
BTCAmt: remove 'min_coin_unit' attribute 2021-09-01 16:56:47 +00:00
15876f4e37
Minor changes 2020-10-19 18:29:57 +00:00
1fa4f601d0
Version bump; minor changes, fixes 2020-07-29 14:39:32 +00:00
cfa8d19cd0
LTC support/testing fixes
- examples/halving-calculator.py: support LTC and BCH
- test/test.py regtest: support Litecoin Core v0.18.1
- test/unit_tests.py: add LTC test
2020-06-11 14:36:32 +00:00
2f6e5f1fc2
test.py: add test for halving calculator 2020-06-02 13:00:18 +00:00
9d8b90f705
modified: examples/halving-calculator.py 2020-06-01 20:59:34 +00:00
b01af014a3
opts.py: allow no-arg init() with dfl opts_data; longhelp fixes,cleanups 2020-05-15 10:13:39 +00:00
bfc40fce4d
halving-calculator.py: a few minor fixes 2020-05-12 16:37:59 +00:00
86fd45566d
new file: examples/halving-calculator.py 2020-05-11 18:07:58 +00:00