SomberNight
e6a0b641d5
lnaddr: encode min_final_cltv into invoice
7 years ago
SomberNight
2e5552816c
if payment fails with UPDATE onion error, also utilise channel_update for private channels
7 years ago
Janus
962f70c7da
ln: add lightning_listen config option
7 years ago
Janus
eabe23f6b8
make function for determining who pays fee
7 years ago
ThomasV
409a336071
fix tests (follow-up previous commit)
7 years ago
SomberNight
0578bbd5d0
fix tests
7 years ago
SomberNight
7589bdc6a9
fix tests
7 years ago
Janus
1763d02b05
rename lnhtlc->lnchan, HTLCStateMachine->Channel
7 years ago
Janus
b26dc66567
lnhtlc: only store feerate once, don't store heights since we do not roll back
7 years ago
Janus
e8471e483b
lnhtlc: merge config and state, remove unnecessary properties
7 years ago
Janus
1d4c113a35
lnhtlc: remove lookup_htlc, use heterogeneously typed lists
7 years ago
Janus
699368b0b7
lnhtlc: save settled htlc amounts separately
7 years ago
SomberNight
d44afd9633
fix tests
7 years ago
Janus
efc8d50570
move connection string decoding to lnworker, fix test_lnutil
7 years ago
Janus
50b3bc939c
avoid reading from queues concurrently in pay()
7 years ago
SomberNight
d29191b010
rename LNChanAnnVerifier
7 years ago
Janus
d5d9270d0c
lnhtlc: save logs and feeupdates
7 years ago
Janus
eca5545004
lnhtlc: don't throw away fee updates or htlcs
...
also add inject_fees debug command
7 years ago
Janus
02eca03486
lnhtlc: cleanup and save settled htlcs
7 years ago
Janus
6f5209ef85
lnhtlc: test that sent amount is received
7 years ago
Janus
261fefb6f3
lnwatcher rebased
7 years ago
SomberNight
0b0bc89083
fix tests
7 years ago
SomberNight
c02cc9bb3b
persist recent peers. implement dns seed bootstrapping.
...
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
7 years ago
SomberNight
bc06ded4b9
persist nodes in channel_db on disk
7 years ago
SomberNight
5a05a92b3d
move bolt-04 onion stuff to its own module
7 years ago
Janus
9247da5203
ln: share more code with control path for failed htlc, verify ctx'es
7 years ago
Janus
3c06b3cee1
ln: use START_INDEX instead of 2**48-1
7 years ago
Janus
a841fa3602
ln: save htlc signatures
7 years ago
SomberNight
d0798c336f
channeldb: allow injecting trusted edges
7 years ago
SomberNight
a5b44d25b0
persist channel db on disk. verify channel gossip sigs.
7 years ago
Janus
9853cc6f31
ln: do not use mSAT accuracy for commitment fees
7 years ago
Janus
66e7b4d250
ln: fundee must commit to fee first
7 years ago
Janus
d740475e7a
move channel_state into HTLCStateMachine
7 years ago
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
7 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
7 years ago
Daniel Kraft
3f8661b069
Unit tests for Blockchain.verify_header.
...
The function Blockchain.verify_header was previously not covered by tests
at all. Even removing all the tests in it would still make the unit tests
pass. This change adds tests for this important (!) function.
7 years ago
SomberNight
aadde9be17
transaction: fix remove_signatures
...
closes #5491
7 years ago
SomberNight
cc9ad3ae90
wallet: fix restore_wallet_from_text edge case
...
closes #5490
7 years ago
SomberNight
94b721baa4
wallet: fix type error in _bump_fee_through_decreasing_outputs
...
fixes #5483
7 years ago
SomberNight
e0b1bbfc46
tests: new tests for bump_fee and rbf_batching
7 years ago
SomberNight
0c20fcb6b3
tests: fix existing bump_fee tests
7 years ago
SomberNight
d0a43662bd
wallet: make "increase fee" RBF logic smarter
...
There are now two internal strategies to bump the fee of a txn.
bump fee method 1: keep all inputs, keep all not is_mine outputs,
allow adding new inputs
bump fee method 2: keep all inputs, no new inputs are added,
allow decreasing and removing outputs (change is decreased first)
Method 2 is less "safe" as it might end up decreasing e.g. a payment to a merchant;
but e.g. if the user has sent "Max" previously, this is the only way to RBF.
We try method 1 first, and fail-over to method 2.
Previous versions always used method 2.
fixes #3652
7 years ago
SomberNight
e3c26d7c7a
json_db: fix remove_spent_outpoint
...
method should make sure prevout_n is str...
also wrote failing test
7 years ago
SomberNight
9e21b76c91
wallet: stricter validation in export_private_key
...
fixes #5422
7 years ago
SomberNight
53d189fc7a
storage: fix some madness about get_data_ref() and put() interacting badly
...
previously load_transactions() had to be called before upgrade();
now we reverse this order.
to reproduce/illustrate issue, before this commit:
try running convert_version_17 and convert_version_18
(e.g. see testcase test_upgrade_from_client_2_9_3_old_seeded_with_realistic_history)
and then in qt console:
>> wallet.storage.db.get_data_ref('spent_outpoints') == wallet.storage.db.spent_outpoints
False
>> wallet.storage.db.get_data_ref('verified_tx3') == wallet.storage.db.verified_tx
False
7 years ago
SomberNight
30ffb3d4dc
util: add function "chunks"
...
taken from ElectrumX
67111a3c4c/electrumx/lib/util.py (L149)
7 years ago
SomberNight
6ad24ea3b3
keystore/transactions: fix overflow of derivation path indices
...
fixes #5366
7 years ago
SomberNight
fd58a0cb20
json_db: enforce order of 'load_transactions' and 'upgrade'
...
fixes #5331
7 years ago
SomberNight
808239bbcc
wallet: fix deleting address from Imported_Wallet
...
closes #4481
7 years ago
SomberNight
07ec0d41d5
fix prev
...
unintentionally committed
7 years ago