bitromortac
193b17f0e4
util: move json_normalize to util
4 years ago
SomberNight
52bd0eb1a6
lnworker: minor improvements to 'lightning_listen' handling
4 years ago
SomberNight
c010aa327e
lnworker: (fix) a listening node would busy-loop if remote DC-ed early
StreamReader.read() returns b'' on EOF, resulting in a busy loop
4 years ago
SomberNight
a81b0ecc59
daemon/rpc: include "jsonrpc" key in rpc responses
fixes #6612
4 years ago
SomberNight
ae57941981
(trivial) follow-up 7b91da9966
4 years ago
SomberNight
7afcfe7943
build: update some packages in dockerfiles
Ubuntu no longer serves old version
4 years ago
SomberNight
364fca6a58
transaction: fix regression: witness_utxo was not included in QR code
fixes #6600
4 years ago
SomberNight
c4c22312c4
transaction: impl tx.to_qr_data(): move logic from GUI to tx class
4 years ago
SomberNight
7b91da9966
Qt tx dialog: handle "empty" locktime field
fix https://github.com/spesmilo/electrum/issues/5486#issuecomment-696276020
4 years ago
SomberNight
9380b331e4
LNWatcher: implement diagnostic_name; for nicer log lines
4 years ago
MrNaif2018
6bd1a04aee
Pass wallet to invoice_status/request_status ( #6595 )
* Pass wallet to invoice_status/request_status
* Check for same wallet in qt gui
Co-authored-by: ghost43 <somber.night@protonmail.com>
4 years ago
Benoît Verret
ddc94197aa
Keep console input when switching server ( #6607 )
Console input was being replaced by an empty line every time the
server used changed.
4 years ago
SomberNight
5337331fa0
windows build: some refactor to make building 64 bit binaries easier
related: #6598
4 years ago
Jin Eguchi
56f380a62c
appimage: update openssl & libudev-dev ( #6599 )
4 years ago
SomberNight
1ea4e42a96
Qt history/address tab: defer refreshing while editing (e.g. label)
This functionality was originally added in 0371a3dc32
,
but was lost with #4915 in version 3.3.
4 years ago
SomberNight
caa68e2fe8
(trivial) config.get_netaddress: use NetAddress.from_string
4 years ago
Benoît Verret
77287e0fc7
Fix multiline script error ( #6581 )
Syntax errors emerged when running multiline scripts in the console
when using the run() command.
4 years ago
SomberNight
35f1f2905b
lnpeer: forbid creating Peer with ourselves (self-connect)
related: #6583
4 years ago
ghost43
3eba26b398
LN cooperative close: avoid address-reuse ( #6590 )
Previously if we coop-closed multiple channels in the same session,
they would reuse the wallet address.
4 years ago
ghost43
fc89c8ffa9
win binary: build zbar ourselves ( #6593 )
This allows bundling much newer zbar that includes many fixes.
related: #6018
This is largely based on
https://github.com/Electron-Cash/Electron-Cash/pull/1362
https://github.com/Electron-Cash/Electron-Cash/pull/1363
https://github.com/Electron-Cash/Electron-Cash/pull/1365
eda015908e
4 years ago
SomberNight
ea3e3ddbb8
lnpeer: handle cooperative close edge-case
fix #6317
4 years ago
SomberNight
261ad804ca
invoices: always validate that LNInvoice.invoice can be decoded
related: #6559
The LNInvoice.from_json() method previously did not validate, which is
used by e.g. wallet.import_invoices.
4 years ago
ThomasV
9d2ede8796
fix arg order in sign_version
4 years ago
ThomasV
950ed9a456
sign_packages: upgrade python
4 years ago
SomberNight
f9ce058479
prepare release 4.0.3
4 years ago
ThomasV
413fcfbf9b
update locale submodule
4 years ago
SomberNight
9931df9f25
storage: fix update-password edge-case
fixes #6400
4 years ago
SomberNight
9eb152ed98
keystore: improve check_password.
and add tests that exercise it
maybe fixes #4128
4 years ago
SomberNight
9b4414fb2e
keystore: add comment about find_my_pubkey_in_txinout quirk (re PSBT)
4 years ago
ghost43
9e0e941533
Merge pull request #6563 from SomberNight/202009_deps
update some dependencies
4 years ago
Henrik Grimler
48a7e5cc2b
gui: update stdio and text after db and storage separation ( #6567 )
e1ce3aace7
updated the qt and kivy guis, but not stdio or text one.
4 years ago
ghost43
21c3572600
hardware devices: run all device communication on dedicated thread ( #6561 )
hidapi/libusb etc are not thread-safe.
related: #6554
4 years ago
SomberNight
9204102663
binaries: pip install build requirements first
I no longer trust pip to install packages from a requirements.txt file in the correct order.
For reproducibility, let's install pip/setuptools/wheels/cython first.
see https://github.com/pypa/pip/issues/2362#issuecomment-418423458
see #5859 and #6382
4 years ago
SomberNight
829f7c7443
rerun freeze_packages
4 years ago
SomberNight
cb2f92f710
windows binaries: update pyinstaller to 4.0
4 years ago
SomberNight
4f46741c52
binaries: bump python version (3.7.7->3.7.9)
4 years ago
SomberNight
7e534f4865
dependencies: rm pyaes from requirements
Since #6014 , pyaes is not really needed anymore.
As we currently require either one of pycryptodomex or cryptography,
even if pyaes is available, it will not be used.
We could strip it out completely from crypto.py...
In any case, pyaes is still pulled in by some hw wallet dependencies indirectly;
but the core library no longer depends on it.
4 years ago
SomberNight
1cc8c2c055
binaries: bundle 'cryptography' instead of 'pycryptodomex' in binaries
related: #6538
(this allows testing the binaries; to consider whether we can drop pycryptodomex)
4 years ago
SomberNight
53a5a21ee8
hardware: update device conn. status faster (through GUI indicator)
Qt status bar icon will now refresh to reflect disconnected device
during next scan
4 years ago
SomberNight
9bba65199e
Qt QR code: when saving QR code as image file, don't include stretch
The stretch to the right of the QR was included in the image previously.
This resolves the FIXME.
4 years ago
SomberNight
2d739981c2
lnhtlc: fix prev: too much copy-paste
4 years ago
SomberNight
aba2e0f55a
lnhtlc: add all_htlcs_ever, get_htlc_by_id, was_htlc_failed and use them
towards encapsulation of hm.log
4 years ago
SomberNight
51f42a25f9
lnhtlc: add lock to make methods thread-safe
many methods are accessed from both the asyncio thread and the GUI thread
fixes #6373
4 years ago
SomberNight
a7199696d3
json_db: exempt keystore from StoredDict conversion
The keystore logic would need to be significantly changed to nicely
interoperate with StoredDict/json_db logic.
(just see KeyStore.__init__() and KeyStore.dump())
For now we exempt the keystore from the recursive StoredDict conversion, as
it is a smaller change that is also easier to review for correctness.
fixes #6066
fixes #6401
also reverts 2d3c2eeea9
(which was an even hackier workaround for #6066 )
4 years ago
SomberNight
8dc3fadd13
tests: add tests for #6066 and #6401 . latter is failing atm.
see #6066
see #6401
4 years ago
ThomasV
5f7d8cc462
reverse swap: check that received amount is higher than dust threshold
4 years ago
ThomasV
6d67e77136
Merge pull request #6552 from verretor/console-constructs
Fix handling of constructs in console
4 years ago
Benoit Verret
9e35f1f8ac
Fix handling of constructs in console
- Replace "...." by "... " in multiline constructs.
- Execute constructs after one empty line and not two or three. It
was more or less random before.
4 years ago
MrNaif2018
ba649fa8ab
Added for_broadcast argument to payto/paytomany ( #6532 )
The payto command now takes a flag "addtransaction" whether the returned transaction should be added to the wallet history.
Previously payto did not have a side-effect, and as the flag is opt-in, that will stay the default.
closes #6529
4 years ago
Johannes Zweng
2c7da6afde
add missing `wallet.save_db()` after adding or rm'ing payment requests ( #6435 )
4 years ago