Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document disabling utxo_freeze_threshold #8035

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions electrum/simple_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ class SimpleConfig(Logger):
1. Command line options.
2. User configuration (in the user's config directory)
They are taken in order (1. overrides config options set in 2.)

Options are set and read using `getconfig` and `setconfig` as
```
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
$ ./run_electrum -o setconfig unconf_utxo_freeze_threshold 1234
true
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
1234
$ ./run_electrum -o setconfig unconf_utxo_freeze_threshold null
true
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
```
"""

def __init__(self, options=None, read_user_config_function=None,
Expand Down
21 changes: 21 additions & 0 deletions electrum/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,27 @@ def _is_coin_small_and_unconfirmed(self, utxo: PartialTxInput) -> bool:
In particular, this test triggers for large "dusting transactions"
that are used for advertising purposes by some entities.
see #6960
If this happens in error, you can manually un-freeze the coins in the
Coins tab (View | Show Coins, then navigate to the now-visible tab). If
it happens repeatedly, you can disable this test using `setconfig`:
```
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
$ ./run_electrum -o setconfig unconf_utxo_freeze_threshold 1234
true
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
1234
$ ./run_electrum -o setconfig unconf_utxo_freeze_threshold null
true
$ ./run_electrum -o getconfig unconf_utxo_freeze_threshold
```
It is also possible (but not recommended) to disable this by manually
editing the config file. To do this, set
```
"unconf_utxo_freeze_threshold": 0
```
in ~/.electrum/config. Make sure to back up your config file first as
JSON syntax is somewhat difficult to get right, and the config file
will be overwritten with defaults if you get it wrong.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The advice text here applies to editing the config in general. Should we maybe document setconfig and getconfig better instead?

"""
# confirmed UTXOs are fine; check this first for performance:
block_height = utxo.block_height
Expand Down