SomberNight
8c1c07a290
build: partially revert 3cd52e2d7b
new versions of yarl and multidict break the windows build as they
don't provide win32 wheels
see
https://github.com/aio-libs/multidict/issues/550
https://github.com/aio-libs/yarl/issues/535
4 years ago
SomberNight
7ac968b406
mac build: use a virtualenv instead of global python packages
This helps to avoid older versions of pip-installed dependencies interfering with the build.
4 years ago
SomberNight
3cd52e2d7b
rerun freeze_packages
4 years ago
SomberNight
168801b7f8
contrib/freeze_packages.sh: trivial clean-up
4 years ago
SomberNight
77f75f102b
mac build: bundle old PyQt5 so that .app runs on macOS 11 "Big Sur"
This is the time of the year Apple breaks our mac builds, as usual.
mac now has its own "binaries" requirements. This allows us to use
an older version of PyQt5 in the mac binaries. For some reason
if we bundle newer PyQt5, the built app will not start on macOS 11
(but will on older macOS).
related: #6461
in particular, see https://github.com/spesmilo/electrum/issues/6461#issuecomment-713888921
4 years ago
SomberNight
a4e342ac58
requirements: rename some files
4 years ago
SomberNight
c872c3194f
qt "open channel" dialog: detect invalid remote node id sooner
and avoid the "please wait" text to be interpreted as a node id
related #6705
4 years ago
SomberNight
46e59d18f5
invoices: rename "Pending" to "Unpaid"
related #6711
4 years ago
SomberNight
df6dc8fcf2
fix python 3.6 compat
fix #6725
follow-up #6705
4 years ago
ThomasV
ea654ad740
Merge pull request #6705 from bitromortac/lnrater
lightning: reintroduce node recommendation
4 years ago
SomberNight
120da2783b
util.randrange: use stdlib 'secrets' module instead of 'python-ecdsa'
4 years ago
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
SomberNight
1c07777e13
follow-up prev
ah, forgot to commit this file
4 years ago
SomberNight
c616c3bfad
plugins/labels: better error message when using imported wallets
see #6703
4 years ago
SomberNight
193c29af87
wizard, multisig: on bip39/hw ks, only ask for script type for 1st ks
When setting up a multisig wallet, there is no point in asking for the
script type for each cosigner (bip39/hw) -- we can just ask for the
first one. If the first keystore is an electrum seed, we end up never asking :)
4 years ago
SomberNight
cc33b752e2
wizard: on adding bip39/hw ks, don't offer path scanning for multisig
follow-up #6219
for multisig, it's just confusing and useless as-is
4 years ago
SomberNight
fc97181aa5
config: fix get_fee_text for static fees
mismatching units
4 years ago
SomberNight
de80f68e4d
interface: validate protocol-version negotiation on client-side too
related: https://github.com/romanz/electrs/issues/314
4 years ago
ThomasV
70b03cb920
Merge pull request #6698 from SomberNight/202010_qt_pay_ellipsis_dotdotdot
qt gui: send tab: change "Pay" button text to "Pay..."
4 years ago
SomberNight
802fe8c73a
qt user interface: send tab: change "Pay" button text to "Pay..."
Ellipsis ("...") is sometimes used in UIs to suggest there will be an
additional modal dialog before executing the action.
4 years ago
ThomasV
c31ae86bb8
Merge pull request #6634 from SomberNight/202010_fix_main_script_hanging
fix main script hanging (not exiting after exception) in some cases
4 years ago
SomberNight
ea22d0073e
config: distinguish knowing mempool is empty vs not having mempool_fees
config.mempool_fees is now [] if server claims mempool is ~empty,
and None if no valid histogram has been received from server.
(previously it used to be [] in both cases)
4 years ago
SomberNight
2232955a23
synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=True)
fixes #6686
4 years ago
SomberNight
5481fd8af6
interface: validate field order in "mempool.get_fee_histogram" response
4 years ago
SomberNight
25d4a40d6e
qt history tab: fix shortcut in HistoryModel.refresh()
4 years ago
SomberNight
b95525896f
qt send tab: show friendlier error on mistyped bitcoin address
4 years ago
ghost43
8e9d6a4c91
Merge pull request #6685 from SomberNight/202010_bitcoin_script
bitcoin/transaction: construct_script, and clean-ups
4 years ago
SomberNight
200f547a07
ledger: fix compat with hw.1 - signing flow deadlocked
broke in 8a1b46d839ac24f77bfa5e3a1eed0cb7284b59eac5b685854c517f224c98dc44
4 years ago
SomberNight
03bdb4f1b7
Transaction.get_preimage_script: support custom legacy-p2sh inputs
tests based on
- 8ca383c9e0/python/elec-p2sh-hodl.py
- 8ca383c9e0/python/elec-p2wsh-hodl.py
note: I could not reproduce the signature for the p2wsh cltv spend linked above,
so I have created a new testnet output and spent that for that test (to make sure
our behaviour is consensus-valid).
4 years ago
SomberNight
eefb68c82b
transaction: change Transaction.is_segwit_input(txin) to txin.is_segwit()
4 years ago
SomberNight
4c7a92f39c
bitcoin: implement construct_script and use it
4 years ago
SomberNight
89bd520185
bitcoin: move construct_witness from transaction.py to bitcoin.py
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