LBRY-Vault/electrum
SomberNight 660d7d137c
commands: add changegaplimit and getminacceptablegap cmds
There are some legitimate use-cases for changing the gap limit,
so just as it has already been possible to do in the GUI (using the console only! don't expose this to mere mortals.),
now CLI/RPC users have this exposed too.

The "changegaplimit" command will always raise unless invoked with the --iknowwhatimdoing option.

closes #5882

e.g.:
$ curl --data-binary '{"id":"curltext","jsonrpc":"2.0","method":"changegaplimit","params":{"new_limit": 30, "iknowwhatimdoing": true, "wallet":"~/.electrum/testnet/wallets/test_segwit_2"}}' http://user:password@127.0.0.1:7777
$ ./run_electrum --testnet changegaplimit 30 --iknowwhatimdoing -w ~/.electrum/testnet/wallets/test_segwit_2
2020-03-02 19:07:59 +01:00
..
gui Qt LN gossip sync indicator: hide if 100%; rescale 95%->100%; tooltip 2020-03-02 17:28:39 +01:00
plugins clean-up hw-wallet "get_password_for_storage_encryption"-related code 2020-02-28 19:47:56 +01:00
scripts integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
tests transaction: (fix) invalidate ser cache when changing locktime/version 2020-03-01 09:57:59 +01:00
wordlist file reorganization with top-level module 2018-07-13 14:01:37 +02:00
www@7d902a422a fix websocket messages 2019-09-05 11:45:28 +02:00
__init__.py windows: dll-load 'hack' needs to be applied not only from main script 2020-02-11 20:57:37 +01:00
address_synchronizer.py wallet/GUI: don't allow "removing" a LN force-close-tx from history 2020-03-02 05:11:08 +01:00
base_crash_reporter.py added trigger_crash method for testing crash reporter 2019-07-04 18:06:21 +02:00
base_wizard.py clean-up hw-wallet "get_password_for_storage_encryption"-related code 2020-02-28 19:47:56 +01:00
bip32.py follow-up prev: do all checks, and add tests 2020-02-27 05:13:31 +01:00
bitcoin.py Qt tx dialog: allow setting custom locktime 2020-03-01 09:14:50 +01:00
blockchain.py blockchain: move init_headers_file from network.py to blockchain.py 2020-02-27 20:45:29 +01:00
channel_db.py ChannelDB: make gossip sync progress updates cheaper 2020-03-02 16:56:15 +01:00
checkpoints.json update block header checkpoints 2019-08-09 18:59:21 +02:00
checkpoints_testnet.json update block header checkpoints 2019-08-09 18:59:21 +02:00
coinchooser.py CoinChooser: avoid NotEnoughFunds if zero buckets are sufficient 2019-11-11 15:15:04 +01:00
commands.py commands: add changegaplimit and getminacceptablegap cmds 2020-03-02 19:07:59 +01:00
constants.py move lnworker.first_block to constants 2019-08-20 09:03:11 +02:00
contacts.py Separate db from storage 2020-02-10 17:45:23 +01:00
crypto.py update lnbase after crypto refactoring 2019-08-20 09:03:09 +02:00
currencies.json Removed dead exchange. 2019-07-21 13:13:51 +02:00
daemon.py taskgroups: don't log CancelledError 2020-02-27 20:22:49 +01:00
dns_hacks.py network dns hacks: split from network.py into its own file 2020-01-22 18:32:57 +00:00
dnssec.py ecc: abstract away some usage of python-ecdsa: bytes<->int conversions 2020-02-11 16:41:49 +01:00
ecc.py ecc.ECPubkey: also accept bytearray in __init__ 2020-02-19 00:40:33 +01:00
ecc_fast.py libsecp: log exception if failed to load 2020-02-21 15:59:18 +01:00
electrum file reorganization with top-level module 2018-07-13 14:01:37 +02:00
exchange_rate.py network: handle main_taskgroup dying better. passthrough CancelledError 2019-08-30 19:46:25 +02:00
i18n.py move get_default_language to gui.qt.util 2018-09-23 14:11:50 +05:00
interface.py rename all TaskGroup() fields to "taskgroup" 2020-02-27 19:13:56 +01:00
json_db.py Do not save new channels before they are added to lnworker 2020-02-24 09:44:35 +01:00
keystore.py mnemonic: implement Wordlist class 2020-02-29 00:20:11 +01:00
lightning.json update lightning.json 2019-08-20 09:03:11 +02:00
lnaddr.py lnworker: introduce PaymentAttemptLog NamedTuple 2019-12-10 03:17:57 +01:00
lnchannel.py Set channel state to OPENING as soon as we receive 'funding_signed', 2020-02-27 18:12:20 +01:00
lnhtlc.py Restructure wallet storage: 2020-02-04 13:35:58 +01:00
lnmsg.py fix lightning "init" msg assertion error 2020-02-15 15:25:41 +01:00
lnonion.py trivial clean-up (typing/imports) 2020-02-28 20:27:35 +01:00
lnpeer.py Qt tx dialog: allow setting custom locktime 2020-03-01 09:14:50 +01:00
lnrouter.py ln gossip: don't put own channels into db; always pass them to fn calls 2020-02-17 20:38:41 +01:00
lnsweep.py support option_static_remotekey 2020-02-20 21:02:01 +01:00
lntransport.py LNPeerAddr: validate arguments 2019-11-26 00:15:33 +01:00
lnutil.py ChannelDB: make gossip sync progress updates cheaper 2020-03-02 16:56:15 +01:00
lnverifier.py rename all TaskGroup() fields to "taskgroup" 2020-02-27 19:13:56 +01:00
lnwatcher.py lnpeer/lnwatcher: include channel id in log lines 2020-02-24 16:32:18 +01:00
lnworker.py ChannelDB: make gossip sync progress updates cheaper 2020-03-02 16:56:15 +01:00
logging.py Travis CI: Use flake8 to find Python syntax errors and undefined names (#5467) 2019-08-11 22:35:23 +00:00
mnemonic.py mnemonic: implement Wordlist class 2020-02-29 00:20:11 +01:00
network.py network UntrustedServerReturnedError: add "DO NOT TRUST..." tag 2020-02-28 18:47:12 +01:00
old_mnemonic.py mnemonic: implement Wordlist class 2020-02-29 00:20:11 +01:00
paymentrequest.proto file reorganization with top-level module 2018-07-13 14:01:37 +02:00
paymentrequest.py README: rm "Compile the protobuf description file" section 2020-02-21 18:50:52 +01:00
paymentrequest_pb2.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
pem.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plot.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plugin.py clean-up hw-wallet "get_password_for_storage_encryption"-related code 2020-02-28 19:47:56 +01:00
qrscanner.py rename contrib/build-osx as contrib/osx. Move QRReader submodule there. 2018-11-29 11:39:57 +01:00
ripemd.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
rsakey.py no more "import *" 2019-02-11 20:21:24 +01:00
segwit_addr.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
servers.json Remove phishing server 2019-12-26 23:47:32 +07:00
servers_regtest.json file reorganization with top-level module 2018-07-13 14:01:37 +02:00
servers_testnet.json servers: update testnet default list 2019-04-27 23:10:12 +02:00
simple_config.py faster and improved regtests 2020-02-02 15:07:28 +01:00
sql_db.py tests: fix test_find_path_for_payment. need to close sqlite connection 2019-09-22 21:21:24 +02:00
storage.py Separate db from storage 2020-02-10 17:45:23 +01:00
synchronizer.py rename all TaskGroup() fields to "taskgroup" 2020-02-27 19:13:56 +01:00
transaction.py transaction: follow-up prev 2020-03-01 22:08:18 +01:00
util.py rename all TaskGroup() fields to "taskgroup" 2020-02-27 19:13:56 +01:00
verifier.py rename all TaskGroup() fields to "taskgroup" 2020-02-27 19:13:56 +01:00
version.py bump version number to 4.0.0a0 (alpha version) 2019-10-11 18:13:48 +02:00
wallet.py wallet: min_acceptable_gap should mimic wallet.synchronize 2020-03-02 18:53:04 +01:00
wallet_db.py wallet_db.get_transaction: tolerate if tx_hash is None 2020-02-28 20:23:50 +01:00
x509.py ecc: abstract away some usage of python-ecdsa: bytes<->int conversions 2020-02-11 16:41:49 +01:00