nsa
f757bf48bd
channeldb: use RemoteCommitment in NextLocalHtlcIndex
...
This commit changes the fallback in NextLocalHtlcIndex to
RemoteCommitment since the LocalHtlcIndex field lags behind
on the LocalCommitment. Without this bug fix, open circuits
would get prematurely trimmed, resulting in more erroneous
logs. A test case is included to check that the fix works.
2020-03-25 11:49:16 -04:00
Carla Kirk-Cohen
f5e364071b
Merge pull request #4111 from carlaKC/4067-pendingchannelsrpcadditions
...
lnrpc: add fee and initiator to pending channels
2020-03-25 13:47:16 +02:00
Joost Jager
6e30dda54f
Merge pull request #4114 from joostjager/routing-logging
...
routing+htlcswitch: logging improvements
2020-03-25 12:15:39 +01:00
carla
9e1cdb78e7
lnrpc: deprecate unused pending closing channels field
...
The pending closing channels field was present to cover an edge case
where coperatively closed channels were closed before upgrade and
confirmed after the upgrade. This commit deprecates the field and adds
a warning log to cover these edge cases.
2020-03-25 08:48:19 +02:00
carla
8b83c1f7f9
lnrpc: add commit fees to WaitingPendingClose
2020-03-25 08:45:08 +02:00
carla
fd6b397496
lnrpc: add initiator bool to PendingChannel message
2020-03-25 08:42:26 +02:00
Oliver Gugger
4bc7524410
Merge pull request #4112 from guggero/bump-queue
...
mod: bump version of cert and queue packages
2020-03-24 19:24:36 +01:00
Joost Jager
36e1b92e0c
routing: log reported success amount
2020-03-24 19:02:40 +01:00
Joost Jager
2d07756263
routing: log amount for probability
2020-03-24 19:02:38 +01:00
Oliver Gugger
4726c674db
Merge pull request #4110 from halseth/itest-abandonchannel-flake
...
itest: wait for file writing in wait predicate
2020-03-24 15:33:37 +01:00
Oliver Gugger
ce7970ec4a
mod: bump version of cert package
...
To fix external projects depending on lind, we need to bump the cert
package to a new version for the changes to be picked up.
2020-03-24 14:58:45 +01:00
Oliver Gugger
45a59345e7
mod: bump version of queue package
...
To fix external projects depending on lnd, we need to bump the queue
package to a new version for the changes to be picked up.
2020-03-24 14:51:08 +01:00
Johan T. Halseth
1d2985ce33
Merge pull request #4108 from jnewbery/2020-03-min-htlc-comment
...
[Docs] fix defaultBitcoinMinHTLCInMSat comment
2020-03-24 13:02:04 +01:00
Johan T. Halseth
8dc5a3c144
itest: wait for file writing in wait predicate
2020-03-24 12:18:42 +01:00
Johan T. Halseth
8623bfac22
Merge pull request #4103 from halseth/itest-multi-hop-move
...
[itests] multi hop test move
2020-03-24 09:37:53 +01:00
Olaoluwa Osuntokun
2c0fdbadde
Merge pull request #3969 from Crypt-iQ/wt_fuzz_0108
...
fuzz/wtwire: adding wtwire fuzzers
2020-03-23 17:55:17 -07:00
Olaoluwa Osuntokun
75abb3f41f
Merge pull request #4081 from Roasbeef/frozen-chans
...
multi: introduce new frozen channel variant for external funding
2020-03-23 17:37:40 -07:00
Olaoluwa Osuntokun
625d62e007
lntest/itest: update external funding test to exercise frozen chans
2020-03-23 16:57:09 -07:00
Olaoluwa Osuntokun
1ac7550e3f
chancloser: deny co-op close initiated by the chan initiator for frozen chans
2020-03-23 16:57:03 -07:00
Olaoluwa Osuntokun
c85f6bb364
lnwallet: mark channel as frozen based on ShimIntent
...
In this commit, we make the internal channel funding flow aware of
frozen channels. We also update the testSingleFunderReservationWorkflow
method to ensure that the created channels have the proper type bit set.
2020-03-23 16:57:00 -07:00
Olaoluwa Osuntokun
8bce48d3cc
lnwallet/chanfunding: add new ThawHeight() method to ShimIntent+CannedAssembler
...
As frozen channels can only be created via the non-default channel
assembler, we extend both the ShimIntent and CannedAssembler to also
accept and expose this new channel status along with the thaw height.
2020-03-23 16:56:57 -07:00
Olaoluwa Osuntokun
dbc485f724
lnrpc: add thaw_height to Channel and ChanPointShim
2020-03-23 16:56:54 -07:00
Olaoluwa Osuntokun
421d73b72e
channeldb: add new frozen channel type bit and thaw height
...
In this commit, we add a new channel type bit: a frozen channel. A
frozen channel is one that can only be cooperatively closed by the
responder, but not the initiator. This channel type is useful for
certain classes of channel factory like protocols. We then add a new key
on the channel bucket level to store the height after which this
restriction no longer applies.
2020-03-23 16:56:48 -07:00
Conner Fromknecht
8fd5d13c75
Merge pull request #4064 from breez/optimistic-batch-limit
...
Use batch for historical confirmations filters request.
2020-03-23 13:59:10 -07:00
Conner Fromknecht
4e793497c8
Merge pull request #2669 from cfromknecht/use-netann-in-discovery
...
netann+discovery+server: consolidate network announcements to netann pkg
2020-03-23 13:38:06 -07:00
John Newbery
6e4bbc75a0
[Docs] fix defaultBitcoinMinHTLCInMSat comment
...
Comment says default value is 0, when it is in fact 1.
2020-03-23 12:28:28 -04:00
Johan T. Halseth
b4ea34037a
lntest: move multi-hop root test case and common utils to own file
2020-03-23 11:19:18 +01:00
Johan T. Halseth
1ade912361
itest: run multi-hop claim tests for all commit types
2020-03-23 11:16:29 +01:00
Johan T. Halseth
6ed0c83d11
itest: spin up new nodes for multi-hop tests
...
This will let us set their commitment type for the subtest.
2020-03-23 11:13:27 +01:00
Johan T. Halseth
1ce4abc0a9
itest: extract multi-hop tests into sub tests
2020-03-23 11:13:26 +01:00
Johan T. Halseth
5a0f2d004a
itest: update multi hop test case docs
...
To make clear whcih sweep scenarios are actually being tested
2020-03-23 11:11:25 +01:00
Johan T. Halseth
4b5d91d24d
itest: move multi hop tests to own files
...
PURE CODE MOVE.
2020-03-23 11:10:33 +01:00
Johan T. Halseth
d81c8bbda7
itest: run force closure test for all commit types
...
Now that the force closure test has been extracted, spin up new nodes
for each commit type, and ensure the test succeed for all types.
2020-03-23 11:10:31 +01:00
Johan T. Halseth
651bb09c25
itest: extract channel force closure test into subtest
...
To make it possible to run the for close test for multiple commit types,
we extract it into a subtest, where the two nodes get passed in.
2020-03-23 11:07:36 +01:00
Johan T. Halseth
538f3baac8
itest: print wrong balance in correct format
2020-03-23 11:05:40 +01:00
Roei Erez
ceb454aa16
neutrinonotify: use batch for historical confirmations.
...
This commit introduces an optimization for the chain scanning
used in historical confirmations notifications.
It now uses batch request instead of requesting filters one by one.
2020-03-23 09:51:13 +02:00
Carla Kirk-Cohen
c3ffdb7af4
Merge pull request #4095 from carlaKC/4036-surfacepushamounts
...
lnrpc: Add push amount to listchannels
2020-03-23 08:44:53 +02:00
Johan T. Halseth
42638183d8
Merge pull request #4105 from carlaKC/lnrpc-formatroutingprotos
...
routerrpc: run rpc-format on routerrpc
2020-03-20 20:57:42 +01:00
carla
5516a53728
routerrpc: run rpc-format on routerrpc
2020-03-20 11:11:45 +02:00
Olaoluwa Osuntokun
5cf3c08d95
Merge pull request #4104 from chokoboko/config-defaults-fix
...
[trivial] config: remove default values from flag descriptions
2020-03-19 20:15:03 -07:00
chokoboko
090d56b3a2
config: remove default values from flag descriptions
2020-03-20 01:07:47 +02:00
Conner Fromknecht
92456d063d
discovery: remove unused updateChanPolicies struct
2020-03-19 13:43:57 -07:00
Conner Fromknecht
5c2fc4a2d6
discovery/gossiper: use netann pkg for signing channel updates
2020-03-19 13:43:39 -07:00
Johan T. Halseth
c1d00a0c9b
Merge pull request #4101 from ErikEk/typo_fixes_trivial
...
trivial: typo fixes
2020-03-19 21:36:38 +01:00
carla
72e3b0a5d7
lnrpc: add push amount to listchannels
2020-03-19 13:20:26 +02:00
carla
41355756a1
channeldb: add balance at height lookup
...
Add a balance at height lookup function which can be used to
obtain local/remote balance at a given height. The current in memory
commits and revocation log are used to source this information.
2020-03-19 13:20:17 +02:00
Roei Erez
3d71a28cce
build: update dependencies
2020-03-19 12:00:36 +02:00
ErikEk
4e47181b99
trivial: typo fix
2020-03-19 05:43:49 +01:00
Olaoluwa Osuntokun
4897b34050
Merge pull request #3833 from Roasbeef/kv-abstraction
...
channeldb/kvdb: introduce new KV-store database abstraction
2020-03-18 20:20:07 -07:00
Olaoluwa Osuntokun
a4e39906b1
build: silence new linter errors, tidy modules
...
The explicit `bbolt` dep is gone, as we depend on `kvdb`, which is
actually `walletdb`, which has its own module that defines the proper
`bbolt` version.
2020-03-18 19:35:29 -07:00