Commit Graph

4424 Commits

Author SHA1 Message Date
SomberNight
acbb363240 follow-up prev: some clean-ups
re https://github.com/spesmilo/electrum/pull/7492
2021-09-15 16:41:41 +02:00
Siddhant Chawla
65c3a892cf Multiple max spends functionality added (#7492)
this implements https://github.com/spesmilo/electrum/issues/7054
2021-09-15 14:35:15 +00:00
JeremyRand
b1c4bb8914 Add Cirrus CI (#7431)
* Cirrus: Add Tox task

* Cirrus: Add Locale task

* Cirrus: Add Flake8 Task

* Cirrus: Add Regtest task

* Regtest: Flush stdout

Allows viewing output sooner.

* Regtest: Read process.stdout in text mode

Improves ability to quickly see output.

* Cirrus: Add Windows task

* Cirrus: Add Android task

* Cirrus: Add macOS task

* Cirrus: Add AppImage task

* Cirrus: Add tarball task

* Cirrus: Add Submodules task

* Android: remove superfluous cp/rm

* Add .dockerignore

Symlink to .gitignore.
2021-09-13 16:20:54 +00:00
Caio Costa
397e43373f Removes inaccurate "brasilian" language
The option "brasilian" is inaccurate since we brazilians do speak Portuguese.
We don't consider "brasilian" as a language, so I believe this change I've made is a more accurate option for this public.
2021-09-09 22:32:51 -03:00
SomberNight
bf6400ae30 kivy: fix when running with --offline 2021-09-09 17:40:21 +02:00
SomberNight
67f14cdfa8 follow-up prev: some clean-up and added clarifications
re https://github.com/spesmilo/electrum/pull/7464
2021-09-09 17:22:37 +02:00
Siddhant Chawla
3a583885d9 Add network setup option when Kivy GUI starts for the First time. (#7464)
Offer a first-start network setup screen when using the kivy GUI,
similar to what is already done in Qt.
2021-09-09 15:18:19 +00:00
SomberNight
07bd2fe97d network.py: reorder bitcoin core error msg whitelist
test policy.cpp strings last as some of them are short and too generic

fixes https://github.com/spesmilo/electrum/issues/7483
2021-09-08 18:18:08 +02:00
SomberNight
9353220e5d qt send tab: try to make it clearer the sender pays the fee
related: https://github.com/spesmilo/electrum/issues/7488
2021-09-08 16:50:26 +02:00
SomberNight
f7820717be qt ConfirmTxDialog: make fields selectable
related: https://github.com/spesmilo/electrum/issues/7488
2021-09-08 16:39:59 +02:00
SomberNight
c84b873339 qt PreviewTxDialog: fix sizing of fee edits
follow-up to cfdadeda67
2021-09-08 16:36:07 +02:00
ghost43
c338cebe55 Merge pull request #7454 from wakiyamap/change_signet_nodes
Change lightning node(signet)
2021-09-07 17:51:23 +02:00
ghost43
f62b23b210 Merge pull request #7485 from nyanpasu64/fix-tab-order
Fix tab order in Qt setup wizard
2021-09-07 16:48:29 +02:00
djboi
604cba8fb6 Added different Sighash_Types (#7453)
Implements signing for sighash types other than `ALL` for segwit inputs.

fixes https://github.com/spesmilo/electrum/issues/7408
2021-09-07 14:41:50 +00:00
nyanpasu64
024a5a84c3 Fix tab order in setup wizard 2021-09-06 23:56:27 -07:00
SomberNight
a39bfba2d9 ecc: allow tests to disable ecdsa R-value grinding
see https://github.com/spesmilo/electrum/pull/7453#issuecomment-912594926
2021-09-03 17:18:13 +02:00
bitromortac
ebc5954d61 fix ln payments: set payto_e ln invoice correctly
payto_e.lightning_invoice has to be set after the payment field is set
to the node pub key, because check_text has the side effect of resetting
the payto_e.lightning_invoice
2021-08-20 09:21:47 +02:00
wakiyamap
de596a6bfa Change lightning node(signet) 2021-08-12 17:13:28 +09:00
Siddhant Chawla
e9f08ef69e Adding BumpFee command to the CLI (#7438)
closes https://github.com/spesmilo/electrum/issues/5791
2021-08-11 11:30:26 +00:00
bitromortac
e9a1bd1f1e kivy: fix on_intent to call set_URI 2021-07-30 09:47:43 +02:00
bitromortac
c65caf6c68 qt+android: add lightning URI support 2021-07-30 08:44:15 +02:00
bitromortac
6716004b47 bolt11: fix amount encoding for large values 2021-07-30 08:44:15 +02:00
SomberNight
55c988d540 Merge remote-tracking branch 'remotes/bitromortac-fork/2107-fix-self-payments' 2021-07-29 16:38:00 +02:00
bitromortac
4ee5fa75f6 lnrouter+lnworker: rename my_channels 2021-07-29 16:26:23 +02:00
ghost43
c24bb44554 Merge pull request #7433 from bitromortac/2107-fix-self-payments
lnrouter: fix self-payments
2021-07-29 16:25:36 +02:00
SomberNight
a1f69fef97 qt channels list: align "can send", "can recv" cols based on amounts 2021-07-28 15:29:23 +02:00
SomberNight
419d71b4ef (trivial) qt settings: fix a type hint
(no change in behaviour)
2021-07-28 15:29:20 +02:00
SomberNight
e7ccf1584e config: make adding thousand separators to amounts optional 2021-07-28 15:29:16 +02:00
SomberNight
9f5370f9c6 util.format_satoshis: fix (add_thousands_sep & whitespaces) param combo 2021-07-28 15:29:12 +02:00
djboi
6a431aab8c Fixed issue with thousands separator for better readability (#7427)
util.format_satoshis: introduce new option to add thousands separators
2021-07-28 13:26:30 +00:00
bitromortac
e6ccbcf7b7 lnrouter: fix self-payments 2021-07-28 08:12:44 +02:00
Siddhant Chawla
a8ecc68833 Added BTC and Fiat amount on the confirmation screen for Lightning Invoice (#7425)
Added BTC and Fiat amount(as enabled by the user) on the confirmation screen for a Lightning Invoice in the Kivy GUI 

closes https://github.com/spesmilo/electrum/issues/7410
2021-07-22 18:23:32 +00:00
SomberNight
2881d1e62c kivy: fix: when changing units or ccy, history list was not updated
When changing e.g. from mBTC to BTC, the history list was only
partially updated: the displayed amounts got updated but the
displayed unit did not, so incorrect information was shown.
2021-07-21 20:34:05 +02:00
SomberNight
18c9a1af10 kivy: format_amount: minor clean-up 2021-07-21 18:35:06 +02:00
SomberNight
5891e039b1 config: add option to display amounts with msat precision 2021-07-20 20:35:44 +02:00
SomberNight
46badd128e util.format_satoshis: fix whitespaces param for non-zero precision 2021-07-20 20:31:48 +02:00
SomberNight
5c80293696 util.format_satoshis: fix for amounts with higher than sat precision
Previously, msat precision was leaking through format_satoshis if the
user's base unit was set to "sat". This was a bug.
Some features of format_satoshis did not work well with such values, such
as the "whitespaces" param.

Old code:

>>> util.format_satoshis(Decimal('45831275.748'), decimal_point=2)
'458312.76'
>>> util.format_satoshis(Decimal('45831275.748'), decimal_point=0)
'45831275.748'

New code:

>>> util.format_satoshis(Decimal('45831275.748'), decimal_point=2)
'458312.76'
>>> util.format_satoshis(Decimal('45831275.748'), decimal_point=0)
'45831276.'
2021-07-20 20:02:45 +02:00
SomberNight
173225ae92 qt custom block explorer: fix handling non-str config values
fixes https://github.com/spesmilo/electrum/issues/7421

The config key can have non-str values (see line 367).
2021-07-20 16:54:40 +02:00
SomberNight
1f5a2df38d prepare release 4.1.5 2021-07-19 17:19:06 +02:00
MrNaif2018
aafa74ed08 Improve _mythread checks (#7403)
* Improve _mythread checks

* Create get_running_loop util
2021-07-15 14:52:25 +00:00
SomberNight
c5129ee447 follow-up prev 2021-07-15 01:47:26 +02:00
SomberNight
8481afb286 lnchannel: introduce HTLCWithStatus NamedTuple 2021-07-15 01:35:24 +02:00
SomberNight
8a56c9eb66 invoices: explain status constants 2021-07-15 01:33:11 +02:00
ghost43
cf7f66e9e6 Merge pull request #7399 from SomberNight/202107_wallet_request_status_event
wallet: fire "request_status" event also when conf number changes
2021-07-12 21:05:09 +02:00
ghost43
7d91e8144a Merge pull request #7395 from MrNaif2018/feat/lightning-cmd-tag
Add lightning tag for commands
2021-07-12 19:41:13 +02:00
SomberNight
d0f0669e8f crash reporter: send traceback for full chain of exceptions
Previously if there was a chain of exceptions, we were only
sending the traceback for the final exception.

E.g.
try:
    raise ExcOne("asdasd")
except ExcOne() as e:
    raise ExcTwo("qweqwe") from e

^ we would lose all info about ExcOne, including potentially many lines of trace
2021-07-12 19:24:58 +02:00
MrNaif2018
299214835f Add lightning tag for commands 2021-07-12 19:16:34 +03:00
ghost43
ee391a4932 Merge pull request #7396 from MrNaif2018/fix/jsonrpc-lockfile-cleanup
Don't cleanup lockfile if listen_jsonrpc is False
2021-07-12 18:12:09 +02:00
SomberNight
d94d443082 wallet: fire "request_status" event also when conf number changes 2021-07-11 16:57:01 +02:00
SomberNight
8945dcda7a qt init: on exc, let crash reporter appear instead of silently dying
related: https://github.com/spesmilo/electrum/issues/7390

```
20210706T091826.513398Z |    ERROR | __main__ | daemon.run_gui errored
Traceback (most recent call last):
  File "run_electrum", line 407, in handle_cmd
  File "electrum\daemon.py", line 584, in run_gui
  File "electrum\gui\qt\__init__.py", line 414, in main
  File "electrum\gui\qt\__init__.py", line 291, in wrapper
  File "electrum\gui\qt\__init__.py", line 316, in start_new_window
  File "electrum\gui\qt\__init__.py", line 361, in _start_wizard_to_select_or_create_wallet
  File "electrum\wallet_db.py", line 73, in __init__
  File "electrum\wallet_db.py", line 106, in load_data
  File "electrum\util.py", line 412, in <lambda>
  File "electrum\util.py", line 408, in do_profile
  File "electrum\wallet_db.py", line 175, in upgrade
  File "electrum\wallet_db.py", line 540, in _convert_version_24
ValueError: too many values to unpack (expected 2)
```
2021-07-07 19:19:43 +02:00