SomberNight
e8a2fa5596
tests: lnpeer.htlc_switch: don't fulfill htlc until add is irrevocable
This adds a failing test, where the HTLC switch fulfills an HTLC too soon,
before the corresponding 'update_add_htlc' is irrevocably committed.
4 years ago
ThomasV
521376f87f
rm unused parameter in maybe_fulfill_htlc
4 years ago
ThomasV
fe1b2149cb
lnpeer: fix flen in INIT
4 years ago
SomberNight
1d9311aeef
qt network dialog: show protocol (if ":t") for servers in NodesList
4 years ago
SomberNight
d13995309a
qt main_window: add error handling to show_bitcoin_paper
related: #6970
4 years ago
SomberNight
338adf05ba
interface.get_transaction: stricter sanitisation
in particular, Transaction.__init__ allows leading/trailing whitespaces
4 years ago
SomberNight
7294613447
util.is_hex_str: forbid whitespaces
4 years ago
ThomasV
176a1162b4
Merge pull request #6972 from wakiyamap/patch-2
Fix error of showing bitcoin paper(testnet)
4 years ago
Jin Eguchi
f548b63563
Fix error of showing bitcoin paper(testnet)
4 years ago
ThomasV
d7515b936e
Qt: download and show bitcoin whitepaper. fixes #6970
4 years ago
ThomasV
d6e293052a
Qt: set need_update on payment received (minor fix)
4 years ago
ThomasV
8a656d648b
kivy: disable gossip button is channel_db is None
4 years ago
ThomasV
986de70529
Qt: fix invoices refresh (follow-up 94708f63e4
)
4 years ago
ThomasV
895f9daded
add 'view log' action for LN payments in tx history
4 years ago
ThomasV
d4ab4b37b7
Merge pull request #6965 from SomberNight/202101_custom_block_explorer
qt block explorer: allow custom URL
4 years ago
SomberNight
1abecf25c9
qt block explorer: allow custom URL
The QTextEdit expects values such as (one per line):
```
https://blockstream.info/testnet/
https://192.168.0.38:3021/
("https://blockstream.info/testnet/ ", {'tx': 'tx/', 'addr': 'address/'})
```
closes #4831
4 years ago
SomberNight
bc6f2926f4
commands: add 'freeze_utxo' cmd; to expose this to CLI/RPC
4 years ago
SomberNight
da777caa0b
wallet: use lock when modifying frozen_{addresses,coins}
4 years ago
SomberNight
c4e9afa019
wallet.remove_transaction: also rm dependent/child txs
Main motivation is that I often use wallet.remove_transaction
from the Qt console, and would find this behaviour more intuitive.
Note that previously if one were to call this on a tx with children,
the crash reporter would appear with "wallet.get_history() failed balance sanity-check".
related: https://github.com/spesmilo/electrum/issues/6960#issuecomment-764716533
4 years ago
ThomasV
4f3a28b87e
kivy: rename 'Channels' dialog to 'Lightning'
4 years ago
ThomasV
a50af83b84
kivy: simplify swaps dialog
4 years ago
Neil Booth
8b5e312e7e
qt: fix handling BIP21 URI from e.g. website on macOS
fixes #6933
based on e2171f702d
Co-authored-by: SomberNight <somber.night@protonmail.com>
4 years ago
SomberNight
60792dc808
network: fix not retrying main interface in some cases
This was a regression from e83f0dd3fc
,
introduced by the change in connection_down() there.
(if the initial connection to the main interface is not successful, the
network status will not be set to 'disconnected' - but it should be)
That change is now reverted here.
That change was somewhat independent of the rest of that commit,
except the rest highlighted that something of the sort was needed:
as it might sometimes take many seconds for an interface to close
and we might launch another interface for the same server while the
first one is still closing, the "server == self.default_server" test
is highly problematic.
To fix this second - original - issue, we now introduce a "closing" state
for interfaces (in the form of network._closing_ifaces).
4 years ago
SomberNight
b1449a0a39
interface.got_disconnected: change from Future to Event
Events are far easier to reason about.
4 years ago
SomberNight
e365eb0d85
(trivial) kivy: add missing import
follow-up 90d66953cf
4 years ago
SomberNight
1b3674b318
qt send: handle simultaneous NoDynamicFeeEstimates+NotEnoughFunds
fixes #6424
4 years ago
ThomasV
90d66953cf
kivy: add confirm_tx_dialog, similar to qt
4 years ago
zebra-lucky
12c9de6bf9
qt: fix PayToEdit.parse_amount ( #6951 )
nicer error messages for malformed inputs
4 years ago
ThomasV
35c0565395
formatting (rm blank spaces)
4 years ago
bitromortac
08ec368baf
fee-slider: fix dialog crashes for float pos values
4 years ago
bitromortac
fe78ed2a8e
swaps: add swaps to android
4 years ago
ThomasV
6522a1e1a3
fix #6341
4 years ago
ThomasV
10f4715f43
set the same features in LNWallet and LNBackups. fixes #6943
4 years ago
ThomasV
f130cb53ce
bump_dee and dscancel: call tx.estimated_size() after add_input_info().
This is a workaround, see the FIXME. PartialTxInput.is_segwit() should
return the correct value, or raise if information is missing.
4 years ago
ThomasV
091d7e104a
rbf_dialog: show error in the dialog window
4 years ago
ThomasV
9e94ffd08e
factorize code for bumb_fee and dscancel dialogs. Disable ok button if fee_rate is None
4 years ago
ThomasV
b3eb8592f3
upfront_shutdown_script: fix ChannelBackup constructor
4 years ago
ThomasV
23ece8b33b
lnpeer: initialize new channel storage with lnworker db
4 years ago
ThomasV
5598b04c8b
fix regtest/start_bitcoind.sh: createwallet needs to be called
4 years ago
ThomasV
7619949b2f
fix #6674 : raise exceptions if dscancel or cpfp create dust or negative output.
4 years ago
ThomasV
be438bdd60
check_password_for_directory: skip non-files
4 years ago
ThomasV
1e4fa83098
Kivy: use the same password for all wallets
When the app is started, the password is checked against all
wallets in the directory.
If the test passes:
- subsequent wallet creations will use the same password
- subsequent password updates will be performed on all wallets
- wallets that are not storage encrypted will encrypted
on the next password update (even if they are watching-only)
This behaviour is restricted on Android, with a 'single_password' config variable.
Wallet creation without password is disabled if single_password is set
4 years ago
ThomasV
9406541456
kivy wizard: verify seed extension
4 years ago
ThomasV
620a6aaf99
kivy: fix confirm_seed_dialog (broken in 77e0d3745e
)
4 years ago
ThomasV
3cb68b10b9
remove broken payment requests. fixes #6350
4 years ago
ThomasV
66d31305e4
kivy: minor fix (follow-up 94708f63e4
)
4 years ago
ThomasV
641968fcf8
Wizard: do not ask seed type, default to segwit
segwit addresses are widely supported today.
4 years ago
ThomasV
94708f63e4
invoices and requests: rm 3 seconds delay
4 years ago
ThomasV
a2122a8c19
auto-remove paid invoices from GUI
- delay 3 seconds in GUI
- kivy remove 'delete' buttons from send/receive screens
4 years ago
ThomasV
90abfda12b
add unconfirmed state for onchain invoices and requests
4 years ago