Commit graph

31 commits

Author SHA1 Message Date
5a83a716e7
daemontest.py exec: cleanups 2026-05-17 18:03:36 +00:00
e982f7003a
new machine global constant 2026-05-17 18:03:36 +00:00
ab41b78863
new platform global constant 2026-05-17 18:03:32 +00:00
62b360bb7d
daemontest_d.msg: make test methods async (bugfix) 2025-10-03 10:34:04 +00:00
23ca4a9733
daemontest.py rpc: reimplement using async_run() 2025-10-01 15:30:57 +00:00
4b55f1158e
btc.tx.base.decodeScriptPubKey(): reimplement, parse nulldata correctly 2025-09-29 23:09:17 +00:00
acffdda309
minor cleanups (2 files) 2025-09-29 23:09:17 +00:00
4573e170ed
test suite: use match statement where practicable (21 files) 2025-09-23 09:20:53 +00:00
7980ddcdb6
minor testing fixes 2025-09-15 09:28:41 +00:00
4e44e3a929
daemontest.py exec: improve availability test 2025-09-11 17:37:09 +00:00
258f1b0236
various testing fixes 2025-09-11 17:37:04 +00:00
0952cc80a3
various testing fixes 2025-09-09 11:27:05 +00:00
bf783fc074
test.include.unit_test: improve altcoin test skipping code 2025-09-09 11:27:04 +00:00
131787afb8
NewTX, BumpTX: remove unnecessary async call 2025-05-10 10:43:23 +00:00
8b504c895a
modtest.py, daemontest.py: remove prefixes from test files 2025-03-23 10:14:31 +00:00
70022b04b2
use keyword-only parameters where practicable (103 files changed) 2025-03-15 18:24:52 +00:00
89ad0fd29b
keyword-only parameters throughout 2025-03-15 18:24:52 +00:00
ef2d8ae82d
M test/daemontest_d/ut_rpc.py 2025-03-15 18:24:52 +00:00
1e422b2c2b
support Rust Ethereum client (Reth)
Tested on Linux only

Testing:

    $ test/cmdtest.py --coin=eth --daemon-id=reth ethdev
2025-03-10 14:28:55 +00:00
e4b6d0536c
swaptxcreate, swaptxdo: create entry points, NewSwap tx class 2025-02-15 09:54:18 +00:00
e3dd55e909
proto.btc.tx.base: scriptPubKey2addr() -> decodeScriptPubKey() 2025-02-06 10:12:49 +00:00
f8a312e407
coin-specific and protocol-specific configuration options
Rationale: to enable communication with multiple coin daemons on multiple hosts
in a single program invocation, making possible the implementation of asset
swap functionality, for instance

Coin-specific options are prefixed with a coin symbol, proto-specific options
with a coin symbol plus a network name.

Coin- and protocol-specific options override their non-prefixed counterparts.
They are available via the command line, configuration file and Config API.

Currently available options:

    Option                   Supported Prefixes
    tw_name                  btc ltc bch
    rpc_user                 btc ltc bch
    rpc_password             btc ltc bch
    rpc_host                 btc ltc bch eth etc
    rpc_port                 btc ltc bch eth etc xmr
    ignore_daemon_version    btc ltc bch eth etc xmr
    max_tx_fee               btc ltc bch eth etc
    chain_names              eth_mainnet eth_testnet etc_mainnet etc_testnet

Example:

    $ mmgen-tool --coin=ltc --ltc-tw-name=ltc2 --ltc-ignore-daemon-version twview

Help:

    $ mmgen-tool --longhelp
    $ view mmgen/data/mmgen.cfg

Testing:

    $ test/daemontest.py rpc.btc rpc.geth
    $ test/cmdtest.py help opts cfgfile
2025-01-27 16:01:53 +00:00
6b7548f84b
daemontest.py rpc: minor changes and cleanups 2025-01-27 16:01:53 +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
af50f1b328
test suite: minor fixes and cleanups 2024-12-30 11:31:40 +00:00
3f5ce98fda
test suite: remove datadir after stopping daemons 2024-12-30 11:31:40 +00:00
353a4a1f4e
Nix compatibility fixes 2024-12-30 11:31:39 +00:00
866aa6035a
test suite: minor fixes and cleanups 2024-12-30 11:31:39 +00:00
7293135db8
test suite: vendor tx_valid.json from Bitcoin Core repo (v28.0) 2024-12-30 11:31:39 +00:00
5f3920b11a
unit_tests.py -> modtest.py, daemontest.py 2024-10-18 10:43:27 +00:00