Commit graph

3,143 commits

Author SHA1 Message Date
6cb2caea59
main: don’t handle non-zero SystemExit; cmdtest ethdev: minor cleanup 2024-03-09 11:33:26 +00:00
930ed631a0
cmdtest.py: fix handling of TestSuiteSpawnedScriptException 2024-03-09 11:33:26 +00:00
e75169f258
new file: test/misc/cfg.py 2024-03-09 11:33:26 +00:00
c815cf4dd6
renamed: test/misc/cfg.py -> test/misc/cfg_main.py 2024-03-09 11:33:26 +00:00
5fd89629b3
cmdtest autosign: remove use of wait loop for non-threaded tests 2024-03-09 11:33:25 +00:00
3575d2afb2
tw.ctl: path cleanups; cmdtest ethdev: fix wallet_upgrade tests 2024-03-09 11:33:25 +00:00
65032a5b58
fileutil: accept Path instances as arguments 2024-03-09 11:33:25 +00:00
03ce2e74f6
minor fixes and cleanups 2024-03-09 11:33:24 +00:00
cf2e308713
cmdtest.py: suppress traceback with expected non-zero exit val 2024-03-08 14:13:23 +00:00
2cb00192d9
cmdtest.py: cleanups, whitespace 2024-03-08 14:13:23 +00:00
5c419c802b
main.py: add fqmod param; add test/misc/opts.py launcher 2024-03-08 14:13:23 +00:00
211b71431d
renamed: test/misc/opts.py -> test/misc/opts_main.py 2024-03-08 14:13:23 +00:00
54d68ab33f
TwView: improve sort keys for deterministic output 2024-03-08 14:13:22 +00:00
00484cd7ba
wallet: remove hexseed attribute 2024-03-08 14:13:22 +00:00
03e392c158
minor cleanups, deterministic testing improvements 2024-03-08 14:13:22 +00:00
c587ab3998
support descriptor wallets for BTC
For BTC, MMGen Wallet now creates and uses a descriptor wallet as its tracking
wallet.  For LTC and BCH, the legacy Berkeley DB wallet is used by default as
before.

While the legacy BDB wallet continues to be fully supported, BTC users are
advised to upgrade their tracking wallet to a descriptor wallet to avoid
support issues with future versions of Bitcoin Core.

Upgrade a legacy tracking wallet as follows:

    $ bitcoin-cli migratewallet mmgen-tracking-wallet

Alternatively, you may dump your tracking wallet to JSON and restore it as a
descriptor wallet using the ‘mmgen-tool’ commands ‘twexport’, ‘twimport’ and
‘rescan_blockchain’ (see the help screens for those commands for details).

Testing (add the -e option to see script output):

    # descriptor wallet:
    $ test/cmdtest.py regtest

    # Berkeley DB wallet:
    $ test/cmdtest.py regtest_legacy
2024-03-06 11:05:23 +00:00
205fec1785
TwGetBalance: offload spendable warning to btc subclass 2024-03-06 11:05:22 +00:00
8e68aa4e3a
rpc.process_http_resp(): handle errors within returned list 2024-03-06 11:05:22 +00:00
5e43ae2106
tw.ctl, regtest, cmdtest regtest: cleanups 2024-03-06 11:05:22 +00:00
19bdf54bb8
new file: mmgen/contrib/descriptors.py 2024-03-06 11:05:22 +00:00
0883b36842
rpc: fix rpc host/credentials for regtest 2024-03-06 11:05:21 +00:00
649eb141a8
cmdtest regtest: add empty wallet, no balance tests 2024-03-06 11:05:21 +00:00
99c2238c63
TwCtl: resolve_address(), get_label_addr_pairs(): cleanups 2024-03-04 10:30:37 +00:00
651f8d6192
method rename: get_addr_label_pairs() -> get_label_addr_pairs() 2024-03-04 10:30:37 +00:00
fbe4961deb
TwCtl: add no_rpc arg; don’t require RPC to instantiate token TXs 2024-03-04 10:30:37 +00:00
286ba79dd6
xmrwallet: PROXY_HOST -> PROXY_IP 2024-03-04 10:30:37 +00:00
8924016bac
tx.__init__: call/return cleanups 2024-03-04 10:30:36 +00:00
0d3086fc61
unit_tests.py.process_bad_data(): support coroutines 2024-03-04 10:30:36 +00:00
2c2c07d964
MoneroWalletOps: preclude use of cfg.outdir 2024-03-03 09:59:02 +00:00
8e9dc4b572
addrfile: cleanup 2024-03-03 09:59:02 +00:00
4fca289556
cmdtest automount, automount_eth, ethdev: cleanups 2024-03-03 09:59:02 +00:00
c96908ee36
mmgen-xmrwallet: new export-outputs-sign operation 2024-03-03 09:59:01 +00:00
c8b8e37383
xmrwallet autosign: cleanups 2024-03-03 09:59:01 +00:00
986e1ebf72
mmgen-xmrwallet: new abort operation 2024-03-03 09:59:01 +00:00
67e8802102
autosign.Signable: new shred_abortable() method 2024-03-03 09:59:00 +00:00
1c5c3319d4
offline transaction signing with automount for BTC, BCH, LTC and ETH/ERC20
Previously supported only for XMR, offline transaction autosigning with no
filename arguments and automatic mounting/unmounting of the removable device
on the online machine is now available for all coins MMGen Wallet supports
transacting with.  To activate, invoke ‘mmgen-txcreate’ and ‘mmgen-txsend’
with the --autosign option.

Be aware that transactions must be created, signed and sent one at a time when
using this feature.  For bulk transaction signing, you must use the old manual
mounting method.

Example create-sign-send workflow for BTC:

    $ mmgen-txcreate --autosign bc1qxmymxf8p5ckvlxkmkwgw8ap5t2xuaffmrpexap,0.00123 B

    (remove device - insert offline - wait for signing - remove - insert online)

    $ mmgen-txsend --autosign

Unsigned or unsent transactions may be aborted as follows:

    $ mmgen-txsend --abort

And sent RBF transactions may be fee-bumped:

    $ mmgen-txbump --autosign

You can check the status of the current transaction, whether sent or unsent,
with the following command:

    $ mmgen-txsend --status

That’s all there is to it!

Testing (add the -e option to see script output):

    $ test/cmdtest.py autosign_automount
    $ test/cmdtest.py --coin=eth autosign_eth
2024-02-29 15:40:10 +00:00
a33dea177d
proto.btc.tx.status: fix mempool status check for BCH 2024-02-29 15:40:09 +00:00
fe040c0688
mmgen-txsend: add --verbose option 2024-02-29 15:40:09 +00:00
6f0751b8c9
make transactions BIP-125 replace-by-fee by default 2024-02-28 09:26:32 +00:00
59e112ae4d
autosign: new wipe_key operation 2024-02-28 09:26:32 +00:00
df7e8f0bca
autosign: new xmr_setup operation 2024-02-28 09:26:32 +00:00
2d89d6c920
various fixes and cleanups 2024-02-28 09:26:31 +00:00
f1512484c9
autosign: minor fixes and cleanups 2024-02-24 14:17:32 +00:00
0129da60e5
autosign: improve checking/creation of dirs, add autosign_clean test 2024-02-24 14:17:32 +00:00
de346d1470
minor fixes and cleanups 2024-02-24 14:17:31 +00:00
4965cffd2d
autosign: remove xmr_desc attribute, add *xmr_signables 2024-02-24 14:17:31 +00:00
ea4dd0a074
autosign: use fakemod for test cfg initialization 2024-02-22 12:48:42 +00:00
13c9f61da0
cmdtest.py autosign_live: cleanups 2024-02-22 12:48:42 +00:00
f99bf3fcb5
cmdtest.py: delete test group after execution; cleanups 2024-02-22 12:48:42 +00:00
02959677bc
autosign: pass passwd_file and outdir to methods directly 2024-02-22 12:48:42 +00:00