ThomasV
af7d7e883c
Rework wallet history methods:
...
- wallet.get_full_history returns onchain and lightning
- capital gains are returned by get_detailed_history
- display lightning history in kivy
- command line: separate lightning and onchain history
6 years ago
ThomasV
0913194a53
qt: add clear button to receive tab, show invoice right after it is added
6 years ago
ThomasV
b8d908d63e
lnworker improvements:
...
- enable option data_loss_protect
- separate add_peer from open_channel
- display exceptions raised in open_channel
6 years ago
ThomasV
dbe8b75659
move lnpay attempts logic to lnworker.pay
6 years ago
ThomasV
7be4cdaf18
redeem htlcs:
...
- fix bug in lnsweep: lnwatcher transactions were indexed by prev_txid
- add test for breach remedy with unsettled htlcs
- add timeout option to lnpay, and replace DO_NOT_SETTLE with SETTLE_DELAY
so that we can read intermediate commitment tx in regtest
6 years ago
ThomasV
6d9ef29690
redo LNWorker pay:
...
- wait until htlc has been fulfilled
- raise if htlc is not fulfilled
- return boolean success
- try multiple paths in GUI
6 years ago
ThomasV
b1f8c42424
post-rebase fix
6 years ago
ThomasV
842fff832f
enable lightning through command line option
6 years ago
ThomasV
e7218d798d
add get_channel_ctx to CLI, for testing breaches
6 years ago
ThomasV
3dce65dc73
Rename lnchan, lnchannel_verifier, lnbase
...
Auto-completions are a pain if files share a long prefix
6 years ago
ThomasV
d383573bc3
CLI: use funding_point in channel_open and channel_close. add host:port to nodeid
6 years ago
ThomasV
f04e10f61a
save channel timestamps, and show lightning payments in history tab
6 years ago
ThomasV
b7d93e2e11
gui: display lightning balance in status bar
6 years ago
ThomasV
2af178a586
Store boolean is_received in lightning invoices. Sort lightning history with timestamp. Minor fixes
6 years ago
ThomasV
281d51c002
follow-up prev commit
6 years ago
ThomasV
0e8dba897e
lightning:
...
* store invoices for both directions
* do not store lightning_payments_inflight, lightning_payments_completed in lnworker
* payment history is returned by get_payments method of LNChannel
* command line: lightning history, lightning_invoices
* re-enable push_msat
6 years ago
ThomasV
b0d6000771
turn lightning_payments_completed into dict. Show status of lightning payments in GUI. Make 'listchannels' available offline
6 years ago
Janus
6b6097a453
ln: add closechannel cli command
6 years ago
Janus
1425628604
add command for listing invoices and their progress, fix list_channels
6 years ago
ThomasV
626d09b358
add 'recḱless' option to allow using lightning on mainnet
6 years ago
ThomasV
9a88b5605a
add more fields to list_channels
6 years ago
ThomasV
6f3c2b30ed
lnbase: propagate error messages received in on_error to their relevant coroutines
6 years ago
SomberNight
17457327ef
make key derivation reasonable
...
no more hardcoded secrets, no more key-reuse
6 years ago
Janus
0405f0d9ad
accept channel opening requests initiated by remote
6 years ago
Janus
646881f437
lnworker.pay(): lightning-integration support
6 years ago
Janus
efc8d50570
move connection string decoding to lnworker, fix test_lnutil
6 years ago
Janus
1988b552e1
commands: add dumpgraph command to see which nodes electrum knows about
6 years ago
Janus
cf4f0c5d3a
add command to clear ln blacklist, prevent error in pay() from killing Peer
6 years ago
Janus
eca5545004
lnhtlc: don't throw away fee updates or htlcs
...
also add inject_fees debug command
6 years ago
Janus
77e9abc655
ln: store HTLCStateMachine in lnworker.channels
6 years ago
ThomasV
6e71340e52
do not block GUI with open_channel
6 years ago
ThomasV
34d5f1b2e3
lightning: connect send button
6 years ago
Janus
7d2a6d83d5
ln: don't make invoice if peer can't possibly pay, append _sat to sat
...
parameters to avoid confusion
6 years ago
ThomasV
af4f0b6daf
lnworker: separate invoice creation from payment flow
6 years ago
Janus
6a8e5d5954
ln: restore functionality
6 years ago
ThomasV
762dea6593
fix amount in open_channel, add listchannels command
6 years ago
ThomasV
b71f020fc9
move on_funding_locked to lnworker
6 years ago
Janus
18963405ee
lightning: remove hub based approach, port qt gui to lnbase
6 years ago
ThomasV
60d6080fe5
lightning: separate testing from main code
6 years ago
Janus
9617447a0f
lnbase: add lnbase_test
6 years ago
Janus
d84eab0418
lightning: complete moving of lightning objects, acquire net/wallet lock while answering lightning requests
6 years ago
ThomasV
b42009acb7
signtransaction: pass pubkey to tx.sign ( fix #5522 )
6 years ago
ThomasV
1d637ef988
fix #5558
6 years ago
SomberNight
1c75d939d9
commands: change API of "make_seed" and "create" commands
...
instead of "segwit" boolean, take a "seed_type" optional arg
default seed_type to "segwit"
previously these commands created legacy seeds by defalt
6 years ago
SomberNight
9547fb7b06
qt console: accept kwargs for commands.py methods
...
e.g. make_seed(nbits=264, segwit=True)
also allow setting "password" as a kwarg
6 years ago
SomberNight
f60f690ca9
change many str(e) to repr(e) as some exceptions were cryptic
...
it's often valuable to see the type of the exception
(especially as for some exceptions str(e) == '')
7 years ago
SomberNight
f6a7e6ec7d
logging: don't log to file by default
...
Leaking addresses/pubkeys/txids is a privacy leak...
but with lightning, logging should be enabled by default, as otherwise
issues would be sometimes impossible to debug...
Well, disable it for now.
7 years ago
SomberNight
104b8804f7
logging: '-V' cli option can blacklist/whitelist classes with short names
...
for example, '-V ni' will whitelist the 'Network' and 'Interface' classes
'-V ^ni' will blacklist those instead
7 years ago
SomberNight
c80c3596a7
logging: expose 'disablefilelogging' option in Qt preferences
7 years ago
SomberNight
fd5b1acdc8
commands: fix encrypt/decrypt
...
based on Electron-Cash/Electron-Cash@62aa08a0ffde227ababe58a14285b588eab4fd15
7 years ago