Commit graph

3,143 commits

Author SHA1 Message Date
9412505231
mmgen-{txcreate,txdo}: new --autochg-ignore-labels option
As of this commit, addresses in the tracking wallet with labels are considered
reserved, i.e. equivalent to used, for purposes of automatic change address
selection.

Use of this option restores the former default behavior of ignoring labels
during automatic change address selection, with one small difference: when
an address with a label is chosen as a change address candidate, a warning
is displayed before prompting the user for confirmation.

The option may also be set in the configuration file.
2023-01-30 10:18:59 +00:00
56a8652620
test.py regtest: whitespace; cleanups in auto_chg test group 2023-01-30 10:18:59 +00:00
5579f41e19
test/test.py: support ‘invisible’ subgroups starting with ‘_’ 2023-01-30 10:18:58 +00:00
15411c8347
mmgen-{txcreate,txdo}: change --locktime short opt from -L to -l
- this breaks compatibility, scripts may need to be adjusted
2023-01-30 10:18:58 +00:00
2935f24731
tw.txhistory,tx.base: use nonlocal in nested funcs 2023-01-30 10:18:58 +00:00
323331d258
README: update image link, add XMR donation address 2023-01-27 08:56:51 +00:00
13eeb4d9f0
README: update repo, donate links; use relative links to wiki 2023-01-22 20:44:09 +00:00
ec1a322fda
README: add mirrors links 2023-01-13 09:28:13 +00:00
93e1ac5cf2
tiny fix; update links in README 2023-01-12 10:51:12 +00:00
94a904147f
Update coin daemon support to latest versions
- Bitcoin Core:       v24.0.1
- Bitcoin Cash Node:  v25.0.0
- Geth:               v1.10.26
- Monero:             v0.18.1.2 (tested)
2023-01-04 13:41:58 +00:00
55528989f1
proto.btc.tx.new: set sequence numbers for all inputs explicitly
Bitcoin Core v24.0.1 introduces a welcome but undocumented change in the
behavior of the ‘createrawtransaction’ RPC call: when one sequence number is
set, then the sequence numbers for the remaining inputs are automatically set
to the same value.  This occurs even when the ‘replaceable’ and ‘locktime’
arguments are not used.

To ensure this behavior across all coins and daemon versions, always set
sequence numbers for all inputs explicitly to the same value, ignoring
‘replaceable’ and ‘locktime’.
2023-01-04 13:40:13 +00:00
458a010ab1
minor fix and cleanup 2023-01-04 13:40:12 +00:00
29e6822bd1
fix setting of autoset opts in cfg file 2023-01-03 10:36:08 +00:00
301394a9c5
minor cleanups 2023-01-03 10:36:07 +00:00
1aeefd64ae
update copyright dates 2023-01-03 10:36:07 +00:00
eb04c84f26
tw.view: new classes: scroll_action, sort_action, display_action 2022-12-11 12:12:07 +00:00
270fee3785
tw.unspent: wide display fix; tw.view: minor cleanups 2022-12-11 12:12:07 +00:00
ab24c482a1
tw.prune.action: enable echo, clear screen after action 2022-12-11 12:12:07 +00:00
28251369d1
tw.view: prompt -> prompt_fs 2022-12-11 12:12:06 +00:00
621d83a219
tw.view: minor fixes and cleanup 2022-12-09 13:16:10 +00:00
2ac746f1ed
tw.view.action: remove post_view() method 2022-12-09 13:16:09 +00:00
5ebd445957
tw.unspent: addr grouping bugfix; add twview grouping tests 2022-12-08 15:14:01 +00:00
41c3efcfdb
tw.view,tw.unspent: minor cleanups 2022-12-08 15:14:01 +00:00
3e76617650
tw.view: create fake versions of CUR_* vars in overlay 2022-12-08 15:14:00 +00:00
c9191506d6
tw.view: bugfix: restore echoing of input on quit 2022-12-07 12:48:11 +00:00
b26657fb68
Curses-like scrolling UI for tracking wallet views
A stationary header and footer with scrollable area in the middle creates
a much improved user experience compared to the old “dumb terminal” interface,
especially for large tracking wallets.

Scroll with either the Vi keys or up/down/arrow keys.

All tracking wallet views supported: unspent outputs, address list, tx history.

Activate with --scroll on the command line, or by setting the `scroll` option
in the config file.

This feature is entirely opt-in.  The old behavior continues to be supported
without alteration.

Sample invocation:

    $ mmgen-txcreate -qi --scroll

Interactive testing:

    # run the required regtest test dependencies:
    $ test/test.py -d regtest.view

    # test the scrolling UI interface interactively:
    $ PYTHONPATH=. MMGEN_TEST_SUITE=1 cmds/mmgen-tool --bob --scroll listaddresses interactive=1

    # when finished, stop the regtest daemon:
    $ test/stop-coin-daemons.py btc_rt
2022-12-07 10:40:59 +00:00
5b08b3d5e5
MSWin: get_char_raw(): support function keys; minor fixes 2022-12-07 10:40:59 +00:00
0097e99850
test/misc/term.py: support individual commands 2022-12-07 10:40:58 +00:00
d27f4a9c10
tw.view.format(): refactor nested funcs 2022-12-07 10:40:58 +00:00
0c860427cd
tw.view: various cleanups 2022-12-07 10:40:58 +00:00
bd411b1be4
tw.view: cleanup prompts 2022-12-07 10:40:57 +00:00
60d0a29c36
tw.view: ensure min screen width >= prompt width 2022-12-07 10:40:57 +00:00
65c0652ff5
tw.view: improve gen_subheader(), col_hdr implementation 2022-12-07 10:40:57 +00:00
08d78d46ad
tw.view: minor fixes and cleanups 2022-12-07 10:40:57 +00:00
1e00e05139
tw.view: oneshot_msg: whitespace 2022-12-07 10:40:56 +00:00
9f230795a6
tw.view: new attrs: use_cached, display_hdr, display_body 2022-12-07 10:40:56 +00:00
7733de546b
devtools: new pmsg_r() function 2022-12-07 10:40:56 +00:00
ff578e3a0e
tw.view: get_term_columns() -> get_term_dimensions() 2022-12-07 10:40:55 +00:00
9ebde72033
tw.view: minor cleanups 2022-12-07 10:40:55 +00:00
3831319c45
tw.view: remove interactive attr 2022-12-07 10:40:55 +00:00
c73409ac27
term: new set(), register_cleanup() methods 2022-12-07 10:40:54 +00:00
2a41029816
term: minor cleanups 2022-12-07 10:40:54 +00:00
06f914e2a8
test.include.pexpect: add timeout param 2022-12-07 10:40:53 +00:00
f58b1e27a2
twexport prune: handle overlong filenames 2022-12-03 17:40:45 +00:00
2e395edae2
minor testing fixes 2022-12-03 17:40:45 +00:00
217cd7ad39
Hilite: new hl2(), fmt2() methods; optimize fmt(), fmtc() 2022-12-03 17:40:44 +00:00
749dff6dd1
Hilite and subclasses: minor cleanups; truncate_str(): cleanup 2022-12-03 17:40:44 +00:00
8b6bdc72ca
new class: ETCAmt; ETHAmt -> proto.coin_amt 2022-12-03 17:40:43 +00:00
f62322b177
mmgen-tool twexport: address pruning
Bitcoin Core and code forks thereof provide no mechanism for deleting addresses
from a tracking wallet.  Enter tracking wallet exporting with address pruning:
calling ‘mmgen-tool twexport’ with the ‘prune=1’ option launches an interactive
prune menu, allowing the user to delete unwanted addresses from the JSON wallet
dump.  A new tracking wallet can then be easily created from the pruned dump
using ‘mmgen-tool twimport’.

Testing/demo:

    # run the dependencies for the regtest ‘twprune’ test:
    $ test/test.py -d regtest.twprune

    # run the test, displaying output:
    $ test/test.py -SA --demo regtest.twprune
2022-12-01 12:32:33 +00:00
2f5eeb066a
TwJSON.Import: add blockchain rescan warning 2022-12-01 12:32:33 +00:00