Commit graph

1,372 commits

Author SHA1 Message Date
ffae4b4f55
remove dependence on string module (digits,hexdigits,ascii_letters) 2022-01-29 11:23:38 +00:00
7e158a9bcf
globalvars.py: make 'tx_fee_adj' a float 2022-01-29 11:23:38 +00:00
af5770b8e9
protocol.py: improve altcoin class creation code 2022-01-29 11:23:38 +00:00
4981fefffe
opts.init(): add 'need_proto' arg for on-demand loading of .protocol 2022-01-27 11:19:17 +00:00
f4282cd214
tool: unify class initialization with 'need_proto' and 'need_addrtype' 2022-01-27 11:08:08 +00:00
a19275e280
CoinProtocol.core_coins -> g.core_coins 2022-01-27 11:08:08 +00:00
bb96d6223f
lazy imports of hashlib, string 2022-01-27 11:08:07 +00:00
0d0995f631
altcoin.py: use relative imports 2022-01-27 11:08:07 +00:00
37ccc9fe20
util.py,wallet.py: whitespace, minor cleanups 2022-01-27 11:08:07 +00:00
29e3a07d6a
import cleanups 2022-01-27 11:08:07 +00:00
137cef09fc
globalvars.py: implement version and release_date attrs as properties 2022-01-27 11:08:06 +00:00
769f96aad7
altcoins.eth: use relative imports 2022-01-27 11:08:06 +00:00
307ccfa87d
remove altcoins.eth.obj module
- ETHAmt -> mmgen.amt
- ETHNonce -> mmgen.obj
2022-01-27 11:08:06 +00:00
3f208b4c1c
improve color initialization 2022-01-27 11:08:05 +00:00
ed7cc7498a
mmgen-tool: install fix, sort command names; version msg fix 2022-01-25 12:20:23 +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
5545a011b0
minor fixes and cleanups 2022-01-24 19:30:12 +00:00
2305efc39d
scripts/exec_wrapper.py: add tracemalloc support
- support is activated by setting the MMGEN_TRACEMALLOC environment variable
2022-01-24 19:30:12 +00:00
8e17b0fe21
remove unsupported 'mmgen-split' command 2022-01-24 19:30:11 +00:00
0ef7de1886
globalvars.py: move crypto constants to crypto.py 2022-01-22 14:26:15 +00:00
246e500891
crypto.py: import cleanups 2022-01-22 14:26:14 +00:00
ccb4894583
crypto.py:get_*passphrase(),get_hash_preset*(): merge with duplicating code in wallet.py 2022-01-22 14:26:14 +00:00
748bf68c15
crypto.py:mmgen_{en,de}crypt(): whitespace, cleanups 2022-01-22 14:26:14 +00:00
ad569cbeb7
import cleanups throughout 2022-01-22 14:26:13 +00:00
753bd0aba8
minor fixes, cleanups 2022-01-22 14:26:13 +00:00
7d84165ae7
class Filename: improve implementation 2022-01-22 14:26:13 +00:00
5d6e79783f
test overlay fixes 2022-01-22 14:26:12 +00:00
0a4427bb89
scripts/gendiff.py: DOS CR fix 2022-01-22 14:26:12 +00:00
4819c97f8a
util.py: move file utilities to fileutil.py 2022-01-21 11:23:46 +00:00
550a07a644
whitespace (minor) 2022-01-21 11:23:45 +00:00
fbd15ee55d
opts.py: remove module-level import of .util
- required to prevent circular import, as .util imports .opts at module level
2022-01-21 11:23:45 +00:00
0f99c334d5
relocate set_for_type() to opts.py 2022-01-21 11:23:45 +00:00
5ca69146df
opts.py,cfg.py,globalvars.py: cleanups (minor) 2022-01-21 11:23:44 +00:00
c7da0656b1
globalvars.py: sort lists 2022-01-21 11:23:44 +00:00
d6b6d19254
g.max_int -> CoinProtocol.Bitcoin.max_int 2022-01-21 11:23:44 +00:00
cf28abc46d
remove global --monero-wallet-rpc-{host,user,password} options
- they're replaced by the corresponding --wallet-rpc-* options in
  `mmgen-xmrwallet`
2022-01-21 11:23:43 +00:00
91156f6847
globalvars.py: required_opts -> init_opts 2022-01-21 11:23:43 +00:00
0ac28869b3
remove unneeded 'add_opts' argument in opts.init() calls 2022-01-21 11:23:43 +00:00
9e8f625c9b
tw.py: relocate tracking wallet classes to new modules
- TwAddrList -> twaddrs.py
- TwGetBalance -> twbal.py
- TrackingWallet -> twctl.py
- TwUnspentOutputs -> twuo.py

The corresponding Ethereum classes in altcoins/eth/tw.py have been similarly
relocated.
2022-01-20 12:04:52 +00:00
481bc13e52
UserOpts: set _default_to_none to True 2022-01-20 12:04:52 +00:00
b79865dba4
AttrCtrl: add _default_to_none flag 2022-01-20 12:04:51 +00:00
523a8cc5c3
replace global variable 'subseeds' with SubSeedList.dfl_len 2022-01-19 11:43:53 +00:00
54e9799989
test suite: minor cleanups 2022-01-19 11:43:52 +00:00
b46cbd1ddd
replace global variables 'seed_lens' and 'dfl_seed_len'
- g.seed_lens -> Seed.lens
- g.dfl_seed_len -> Seed.dfl_lens
2022-01-19 11:43:52 +00:00
b995cbf71e
permit execution of tests with optimization set
- all tests except object tests now run with PYTHONOPTIMIZE=2
2022-01-19 11:43:52 +00:00
6b3ea8b251
permit execution of scripts with docstrings removed
- scripts now run with PYTHONOPTIMIZE=2, though PYTHONOPTIMIZE should never be
  set in a production environment
2022-01-19 11:43:51 +00:00
3fa644b35b
remove two more assert statements with side-effects
- these were overlooked in e7d531db0
- scripts now run with PYTHONOPTIMIZE=1, though this should never be set
  in a production environment
2022-01-19 11:43:51 +00:00
69f8d7d2fe
whitespace, cleanups (minor) 2022-01-19 11:43:50 +00:00
67067aa7d5
baseconv: set constants in initializer 2022-01-18 09:11:00 +00:00
e7d531db07
remove assert statements that affect branching
- assert statements are still used throughout the MMGen code base for essential
  checks, so use of PYTHONOPTIMIZE will lead to failures.
2022-01-18 09:11:00 +00:00