bitromortac
f36d7872c3
qt: move local node id to info menu
4 years ago
bitromortac
085056532c
guis: reintroduce suggest button
4 years ago
bitromortac
cc9e19409f
lnrater: module for node rating
Introduces LNRater, which analyzes the Lightning Network graph for
potential nodes to connect to by taking into account channel capacities,
channel open times and fee policies. A score is constructed to assign a
scalar to each node, which is then used to perform a weighted random
sampling of the nodes.
4 years ago
ThomasV
59f7d4b02d
fix #6676 and remove dead code
4 years ago
Zibster43
fcccb99a3b
Remove phishing server ( #6660 )
Currentlane.lovebitco.in is being actively used in the phishing attack against Electrum users.
This can be confirmed by looking at https://ra.pe or https://hodlister.co/server-verification.txt ,
the server points directly to an ip in the /24 range being used by phishing ElectrumX servers (46.148.231.31) (https://check-host.net/ip-info?host=currentlane.lovebitco.in )
You can also confirm this by connecting directly to the node and attempt to broadcast a transaction.
4 years ago
SomberNight
ee24c74f19
lnchan.receive_revocation: tolerate not having htlc fail reason
If we get a revack after reestablish, but the fail_htlc was already
committed in a previous app-session, the fail_htlc will not be re-sent and
we will not have the reason (as it's not persisted).
fixes #6675
4 years ago
ThomasV
7110fde25d
follow-up: fix qt lightning dialog if gossip is not started
4 years ago
ThomasV
f155f3aff5
start lngossip if instantiated; this saves a boolean
4 years ago
ThomasV
5d90790726
wallet.py: always instantiate lnbackups
4 years ago
bitromortac
1855bcb17d
qt: reflect running gossip in lightning icon
4 years ago
bitromortac
750147d931
kivy: display warning when first channel is opened
4 years ago
bitromortac
6a0ada3f79
qt: display warning when first channel is opened
4 years ago
bitromortac
bdca7be1c7
kivy: remove enable/disable button
4 years ago
bitromortac
bba995ada3
qt: remove enable/disable button
4 years ago
bitromortac
3c3a59c517
cli: remove enable/disable lightning
4 years ago
bitromortac
3314c149f2
qt: show channels tab by default if ln wallet
4 years ago
bitromortac
42df51f2dd
qt: remove node suggestion
4 years ago
bitromortac
b543874670
gossip: start gossiping when channel is open
4 years ago
bitromortac
4efcb53d24
network: load gossip db early
The gossip db is loaded early when the network is started to save
time when the gui is locked and a wallet not yet loaded. Side effects
of the LNWallet to start peering when a channel db is loaded is
circumvented.
4 years ago
bitromortac
6045de759b
lightning: enable by default but without gossip
Enables lightning by creating a node private key and storing it in
the wallet. The gossiper is not launched at start up, only if there
are existing channels.
4 years ago
ThomasV
edc593a886
submarine swap: add comment to explain witness script asymmetry
4 years ago
SomberNight
08f70420e3
submarine_swaps: describe event-flow for both swap direction in docstr
So that I don't have to figure out every time.
4 years ago
SomberNight
21e46fb147
contrib: add instructions re cross-compiling libsecp to Linux x86
related: #6669
(note that instructions assume this commit as otherwise AUTOCONF_FLAGS is overwritten!)
based on https://stackoverflow.com/a/17748092
4 years ago
SomberNight
914b606cb9
kivy: fix app not even starting
```
File "/home/user/venvs/electrum37/lib64/python3.7/site-packages/kivy/lang/builder.py", line 654, in _apply_rule
child = cls(__no_builder=True)
TypeError: __init__() got an unexpected keyword argument '__no_builder'
```
follow-up c70484455c
4 years ago
SomberNight
8ac6d3b17d
wallet.get_history: take locks.
Re the check at the end: "history not synchronized" - it's not that it's not synchronized,
rather that the history is changing while being computed.
4 years ago
SomberNight
777095fda8
wallet: simplify get_history
some years ago wallet.get_tx_delta returned Optional[int] but it returns int now
4 years ago
SomberNight
f125a06453
wallet: simplify get_wallet_delta
4 years ago
SomberNight
da6080421e
wallet_db: WalletDB.get_txo_addr now returns dict instead of list
4 years ago
SomberNight
e71fa4924f
wallet: rm wallet.txin_value
4 years ago
SomberNight
8b2eb83238
wallet: use get_txin_value in get_wallet_delta
4 years ago
SomberNight
55b5335ebb
qt tx dialog: always show input amounts if we know them
Previously we would only show input amounts for partial txs.
Now also show them for complete txs as well, if we know them:
we check in the wallet db for the prevtx and read the value for the output.
This is safe as the input commits to the prevout via txid (which commits to the output value).
Also show "from addresses" in more cases in a similar fashion.
4 years ago
SomberNight
82c8c4280f
lnworker: add request_remote_force_close which can be used without state
see #6656
4 years ago
SomberNight
c3fb79d412
lnworker: make sure to save new channel before we broadcast
see #6656
4 years ago
SomberNight
c5da22a9dd
network: tighten checks of server responses for type/sanity
4 years ago
SomberNight
c70484455c
kivy: use our logger, not kivy's; and log more exceptions.
4 years ago
Benoît Verret
e66a5bbfc4
Use default sys.ps1 and ps2 as console prompts ( #6651 )
sys.ps1 and sys.ps2 define the strings used as primary and secondary
prompts in the Python interpreter.
Also fix a rare bug introduced by myself in 7772af6 (#6607 ) where
spaces at the end of the current line would not be remembered when
switching server.
4 years ago
SomberNight
547b231b80
config: make sure fee_per_kb() returns Optional[int]
electrs sends fee histogram with float feerates
4 years ago
SomberNight
ef84716e8b
(trivial) kivy: rename title of DSCancelDialog
For an action called "Cancel transaction" it is confusing to have a "Cancel" button
that cancels the action... not sure how to fix -- this is perhaps the least intrusive change
4 years ago
ThomasV
aebe77867d
prepare release 4.0.4
4 years ago
SomberNight
695ad757c7
frozen deps: don't use colorama 0.4.4
until https://github.com/tartley/colorama/issues/284 is resolved
colorama 0.4.4 does not have a source dist uploaded to PyPI, which breaks contrib/make_packages
this partially reverts 4d0afffbcd
4 years ago
SomberNight
9bc4182924
crypto: check version of pycryptodomex/cryptography at runtime
As these pkgs are often provided by the OS package manager (e.g. apt),
the version limits specified in requirements*.txt and setup.py will never
get applied.
4 years ago
SomberNight
e4e6c4fb1b
update locale submodule
4 years ago
SomberNight
4d0afffbcd
rerun freeze_packages
4 years ago
SomberNight
1d187d36f0
(fix) allow opening LN wallet with --offline
4 years ago
ghost43
97c79d52f9
Merge pull request #6649 from benma/bitbox02-9.2.0
BitBox02 v9.2.0: support for signing messages and for p2wsh-p2sh legacy multisig accounts
4 years ago
Marko Bencun
a8f8175674
plugins/bitbox02: add support for signing a message
4 years ago
Marko Bencun
8fa019f65b
plugins/bitbox02: add support for p2wsh-p2sh multisig
4 years ago
Marko Bencun
2c0ae4abdd
contrib/requirements/requirements-hw.txt: bump bitbox02 dep to 5.0.0
Adds the api functions to sign a message and use p2wsh-p2sh legacy
segwit multisig.
4 years ago
SomberNight
a59aec9194
update release notes
4 years ago
SomberNight
bde415cae7
wallet: don't try to get_input_tx from network when offline
related: https://github.com/spesmilo/electrum/issues/6648#issuecomment-708499893
Trying to fetch the prev tx from the network is a blocking operation with
a 10 sec timeout - we should not hang for 10 seconds if there is no network connection.
4 years ago