electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 89fa9b50907891bbf82d701f6991b95c722e324f
parent a52ac0cc744979c6cb2130e8177e808e185dafed
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  3 Mar 2020 11:50:04 +0100

Merge pull request #5898 from leo-lb/plausible-deniability-config

Add command line option to forget config on exit.
Diffstat:
Melectrum/commands.py | 1+
Melectrum/simple_config.py | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/electrum/commands.py b/electrum/commands.py @@ -1235,6 +1235,7 @@ def add_global_options(parser): def add_wallet_option(parser): parser.add_argument("-w", "--wallet", dest="wallet_path", help="wallet path") + parser.add_argument("--forgetconfig", action="store_true", dest="forget_config", default=False, help="Forget config on exit") def get_parser(): # create main parser diff --git a/electrum/simple_config.py b/electrum/simple_config.py @@ -225,6 +225,8 @@ class SimpleConfig(Logger): return key not in self.cmdline_options def save_user_config(self): + if self.get('forget_config'): + return if not self.path: return path = os.path.join(self.path, "config")