Commit Graph
100 Commits
Author SHA1 Message Date
Olaoluwa Osuntokun 6d815379d4 build: bump Dockerfile Go version to 1.14.5 2020-07-16 17:19:53 -07:00
Olaoluwa Osuntokun 26cff10c19 Merge pull request #4344 from matheusdtech/lntest-improvs
lntest+itest improvements
2020-07-15 18:01:33 -07:00
Olaoluwa Osuntokun 4dc9696b5b Merge pull request #4460 from Roasbeef/failure-resolution-str
invoices: add String() method to failure resolution outcome
2020-07-14 16:40:53 -07:00
Olaoluwa Osuntokun aa8539501f Merge pull request #4456 from Roasbeef/windows-scb-close
chanbackup: always close SCB file after reading
2020-07-13 16:06:03 -07:00
Olaoluwa Osuntokun 81f6b4dcfe invoices: add String() method to failure resolution outcome
In this commit, we add a String() method to the failure resolution
outcome. Without this, logs aren't very useful as the integer version of
the outcome is printed rather than the description.
2020-07-12 17:25:53 -07:00
Olaoluwa Osuntokun f61e1ac568 lntest/itest: add new test for wumbo channels 2020-07-10 16:27:20 -07:00
Olaoluwa Osuntokun 6c322c5eb2 lntest/itest: fix line wrapping in funding test case 2020-07-10 16:27:18 -07:00
Olaoluwa Osuntokun 6f208bce40 server+funding: use max values for csv delay and confs for wumbo channels 2020-07-10 16:27:17 -07:00
Olaoluwa Osuntokun 67b8bca5b2 rpc: allow outgoing wumbo channel requests if wumbo is enabled 2020-07-10 16:27:16 -07:00
Olaoluwa Osuntokun 8177fed302 funding: allow incoming wumbo channel requests if wumbo is enabled 2020-07-10 16:27:15 -07:00
Olaoluwa Osuntokun 6243838444 server: remove unused globalFeatures variable
Everything is done through the feature manager now, so we don't need to
set these feature bits manually anymore.
2020-07-10 16:27:14 -07:00
Olaoluwa Osuntokun 5345069b16 server+lncfg: add new config flag to enable wumbo channels
In this commit, we add a new config flag to enable wumbo channels, with
the default being that nodes reject all wumbo channel attempts.
2020-07-10 16:27:13 -07:00
Olaoluwa Osuntokun 43a355321f lncfg: split off protocol options into normal and legacy, normal reqs no build tag
In this commit, we split off the protocol options into a normal and
legacy sub-config. The legacy sub-config protected by a built tag, and
will only be populated if thet tag is set. Legacy options now have a
`legacy` prefix. So `--protocol.legacyonion` is now `--protocol.onion`,
and `--protocol.committweak`, is now `--protocol.legacy.committweak`.

We also create a new experimental protocol feature sub-config for newer
features that may not yet been fully complete, so they require a build
tag.
2020-07-10 16:27:12 -07:00
Olaoluwa Osuntokun 73cdb6a50f feature: add feature sets for the wumbo channel feature bit 2020-07-10 16:27:11 -07:00
Olaoluwa Osuntokun 1b8fd008c4 lnwire: define feature bits for wumbo channels 2020-07-10 16:27:10 -07:00
Olaoluwa Osuntokun c58be5625d chanbackup: always close SCB file after reading
In this commit, we fix a bug introduced with the recent bug fix for SCB
state+fail combination. On windwos a rename operation will fail is the
fail one is attempting to rename is still open. Therefore we need to
close the file after we read the contents, to ensure the follow up
rename operations once the channel state changes will succeed. We do
this by using `ioutil.ReadFile`, which will always clsoe the file after
reading.

Fixes #4450.
2020-07-10 16:20:32 -07:00
Olaoluwa Osuntokun 8cb1276dbf Merge pull request #4446 from Roasbeef/go-mod-install-notes
docs: update install docs to no longer use go get
2020-07-08 14:11:08 -07:00
Olaoluwa Osuntokun 52084d1bae docs: update install docs to no longer use go get
Fixes #4444.
2020-07-07 15:56:24 -07:00
Olaoluwa Osuntokun 3a2f3504a5 Merge pull request #4281 from Roasbeef/host-ann
netann: add new HostAnnouncer to support dynamic IPs via domains
2020-07-06 18:12:15 -07:00
Olaoluwa Osuntokun ba3688c3b9 netann: add new HostAnnouncer to support dynamic IPs via domains
In this commit, we add a new sub-system, then `HostAnnouncer` which
allows a users without a static IP address to ensure that lnd always
announces the most up to date address based on a domain name. A new
command line flag `--external-hosts` has been added which allows a user
to specify one or most hosts that should be periodically resolved to
update any advertised IPs the node has.

Fixes #1624.
2020-07-06 17:30:08 -07:00
Olaoluwa Osuntokun 854a12e4c6 Merge pull request #4347 from Crypt-iQ/peer_pkg_0518
peer: Brontide Peer implementation
2020-07-06 17:24:15 -07:00
Olaoluwa Osuntokun 2d4facf940 Merge pull request #4428 from wpaulino/relative-thaw-height
multi: add relative thaw height interpretation
2020-07-02 15:37:23 -07:00
Olaoluwa Osuntokun 7cda30bfb4 Merge pull request #4167 from joostjager/hold-keysend
multi: hold keysend payments
2020-06-30 16:06:53 -07:00
Olaoluwa Osuntokun feb300f102 Merge pull request #4407 from cfromknecht/gen-keysend-pay-addr
invoices/invoiceregistry: special-case payaddr index insertion for keysend
2020-06-26 16:38:19 -07:00
Olaoluwa Osuntokun 1de7e30cd1 Merge pull request #4361 from yyforyongyu/add-channel-status
contractcourt: add ChannelStatus in MarkChannelClosed
2020-06-23 16:23:30 -07:00
Olaoluwa Osuntokun bd1728606b Merge pull request #4328 from joostjager/anchor-test-vectors
lnwallet/test: reproduce test vectors in commit and htlc tx test
2020-06-23 16:09:05 -07:00
Olaoluwa Osuntokun acc698a699 Merge pull request #4379 from Roasbeef/scb-union-bug-fix
chanbackup: always combine with on-disk state when swapping, refuse to start w/ invalid files
2020-06-18 18:49:28 -07:00
Olaoluwa Osuntokun 496e29d02e chanbackup: refuse to start the SubSwapper if we can't read the SCB file
In this commit, we add an additional defense against starting up with an
invalid SCB state. With this commit, we'll now fail to start up if we're
unable to update or read the existing SCB state from disk. This will
prevent an lnd node from starting up with an invalid SCB file, an SCB
file it can't decrypt, or an SCB left over from another node.
2020-06-17 17:44:57 -07:00
Olaoluwa Osuntokun fc65c9b2cc chanbackup: always combine new backup data w/ on-disk state
In this commit, we fix a bug that could possibly cause a user's on disk
back up file to be wiped out, if they ever started _another_ lnd node
with different channel state. To remedy this, before we swap out the
channel state with what's on disk, we'll first read out the contents of
the on-disk SCB file and _combine_ that with what we have in memory.

Fixes #4377
2020-06-17 17:44:52 -07:00
Olaoluwa Osuntokun ed93c16e51 Merge pull request #4033 from Roasbeef/go1.14
build: update travis to build against go 1.14
2020-06-16 16:25:34 -07:00
Olaoluwa Osuntokun 25f6d51b45 build: update Github Actions to use Go 1.14.4 2020-06-15 17:51:22 -07:00
Olaoluwa Osuntokun 7261b064db build: update to walletdb v1.3.3 and wtxmgr v1.2.0 2020-06-15 17:51:20 -07:00
Olaoluwa Osuntokun 870b64a5bd build: update travis to build against go 1.14 2020-06-15 17:51:19 -07:00
Olaoluwa Osuntokun 3c48cab227 Merge pull request #4366 from wpaulino/bitcoind-20-compat
Support bitcoind v0.20
2020-06-15 17:45:35 -07:00
Olaoluwa Osuntokun 103c59a488 Merge pull request #4262 from Crypt-iQ/strip_dwarf_0507
Makefile: add -w to -ldflags to strip DWARF symbols
2020-06-15 10:42:44 -07:00
Olaoluwa Osuntokun 1cce50d3b7 Merge pull request #4345 from matheusdtech/brar-flake
breacharbiter: fix flaky race condition in test
2020-06-15 10:41:44 -07:00
Olaoluwa Osuntokun 9b8d51231c Merge pull request #4355 from wpaulino/txnotifier-cancel-conf-cleanup
chainntnfs: remove queued confirmation notification in CancelConf
2020-06-11 18:13:44 -07:00
Olaoluwa Osuntokun 38b8e54ba7 Merge pull request #4357 from bhandras/invoices_testify
invoices+test: replace DeepEqual + spew dump with testify
2020-06-08 20:37:38 -07:00
Olaoluwa Osuntokun 09bb9db782 Merge pull request #4342 from wpaulino/create-chan-ann-zero-features
netann: decode features when creating chan ann from stored chan info
2020-06-02 20:06:53 -07:00
Olaoluwa Osuntokun cd04dd79b6 Merge pull request #4339 from bhandras/etcd_bump
build: bump etcd to v3.3.22
2020-06-02 18:31:17 -07:00
Olaoluwa Osuntokun bdc0d875bc Merge pull request #4327 from joostjager/stuck-payment-loop
routing: don't treat bad features as an unexpected error
2020-05-28 15:43:09 -07:00
Olaoluwa Osuntokun c5e62ba9b3 Merge pull request #4332 from cfromknecht/dry-run-migration-logs
channeldb: dry run migration logs
2020-05-28 15:39:55 -07:00
Olaoluwa Osuntokun 6b3c2c1ac5 Merge pull request #4335 from joostjager/queryroutes-limit
rpcserver+routerrpc: remove payment limit
2020-05-28 15:39:15 -07:00
Olaoluwa Osuntokun f5598f7305 Merge pull request #4324 from Roasbeef/lnd-v-0-10-99
build: bump version to lnd v0.10.99-beta
2020-05-27 15:57:19 -07:00
Olaoluwa Osuntokun d2d8793afd Merge pull request #4298 from cfromknecht/sub-inv-fixes
channeldb+invoices: minor invoice subscription fixes
2020-05-27 15:56:47 -07:00
Olaoluwa Osuntokun eddd9049dc Merge pull request #4252 from cfromknecht/rename-kvdb-read
multi: rename kvdb Read* types to R*
2020-05-27 15:52:49 -07:00
Olaoluwa Osuntokun d9044e5692 build: bump version to lnd v0.10.99-beta
In this commit, we bump the version to a `.99` minor version to reflect
the fact that master is ahead of _both_ `v0.10.0-beta`, and the upcoming
`v0.10.1-beta`.
2020-05-26 18:34:42 -07:00
Olaoluwa Osuntokun 03e6a18212 Merge pull request #4317 from bhandras/testclock_improvement
clock: optionally wait until tickers are registered in TestClock
2020-05-26 18:02:25 -07:00
Olaoluwa Osuntokun 797d0f9368 Merge pull request #4316 from gcomte/master
lncli: Fix typos in closechannel help dialog
2020-05-26 18:01:12 -07:00
Olaoluwa Osuntokun d32c7a4814 Merge pull request #4309 from Roasbeef/restore-open-time
lnd: fix regression in DB open time logs
2020-05-26 11:27:17 -07:00
Olaoluwa Osuntokun bbc4f06872 lnd: fix regression in DB open time logs
In this commit, we fix a regression in our DB open time logging that was
introduced in #4015. Obtaining the target backend from the configuration
will actually also open the database, so we need to include that in the time
delta as well.
2020-05-22 15:18:23 -07:00
Olaoluwa Osuntokun 53da66a6fc Merge pull request #4302 from wpaulino/btcwallet-fetchinputinfo-bounds-check
btcwallet: add transaction outputs bounds check to FetchInputInfo
2020-05-21 17:22:25 -07:00
Olaoluwa Osuntokun c2e7ca9b5f Merge pull request #4300 from guggero/no-fastsha
channeldb+htlcswitch: don't use fastsha256 in tests
2020-05-21 17:21:50 -07:00
Olaoluwa Osuntokun c2516d9352 Merge pull request #4286 from guggero/remove-global-cfg
multi: remove global cfg variable
2020-05-18 19:45:43 -07:00
Olaoluwa Osuntokun 34e21eca78 Merge pull request #4291 from wpaulino/btcd-getblock-compat
build: update to latest btcd and btcwallet versions
2020-05-18 18:25:01 -07:00
Olaoluwa Osuntokun 280bf8d26c Merge pull request #4226 from breez/fix-chainrpc-crash
Fix crash when ChainNotifier is being accessed too early.
2020-05-15 16:17:40 -07:00
Olaoluwa Osuntokun 02f8a0db2b Merge pull request #4277 from joostjager/fix-signer-err
lnwallet: return signer error
2020-05-15 16:15:50 -07:00
Olaoluwa Osuntokun c6ae06242d Merge pull request #4274 from wpaulino/wtclient-add-tower-filter
wtclient: load missing info into client sessions upon new tower
2020-05-15 16:13:22 -07:00
Olaoluwa Osuntokun 8b09ac07d3 Merge pull request #4276 from guggero/actions-failure
github: remove continue-on-error
2020-05-14 11:58:23 -07:00
Olaoluwa Osuntokun 338e12ecd0 Merge pull request #2668 from cfromknecht/dry-run-migration
Dry run migration
2020-05-11 18:05:52 -07:00
Olaoluwa Osuntokun 704ce02712 Merge pull request #3018 from cryptagoras/log-htlcsuccess
htlcswitch/switch: log successfully forwarded HTLCs
2020-05-11 17:55:45 -07:00
Olaoluwa Osuntokun 36e8d1b468 Merge pull request #4250 from guggero/rest-1-cleanup
REST saga 1/3: Cleanup proto files, generate Swagger docs
2020-05-11 17:26:52 -07:00
Olaoluwa Osuntokun f3a427724b Merge pull request #4256 from joostjager/extend-itest-whitelist-2
itest: extend whitelist 2
2020-05-08 16:31:19 -07:00
Olaoluwa Osuntokun db7eac35d0 Merge pull request #4253 from Roasbeef/fix-go12-duration
cmd/lncli: remove usage of Millisecond() for Go 1.12
2020-05-08 16:20:39 -07:00
Olaoluwa Osuntokun 2190bc7af9 Merge pull request #4236 from guggero/grpc-docs
docs: update instructions for JavaScript and Python on how to use gRPC
2020-05-08 16:13:45 -07:00
Olaoluwa Osuntokun 3190437188 Merge pull request #4139 from carlaKC/lnrpc-listsweeps
lnrpc: add block height params to GetTransactions and add ListSweeps
2020-05-07 16:44:05 -07:00
Olaoluwa Osuntokun 6c828f7ef0 docker: add jq tool to Docker image so we can parse lncli output (#4259)
add jq tool to Docker image so we can parse lncli output
2020-05-07 16:22:15 -07:00
Olaoluwa Osuntokun 50ddb53e28 Merge pull request #4249 from joostjager/extend-itest-whitelist
itest: extend whitelist
2020-05-06 16:38:03 -07:00
Olaoluwa Osuntokun 4a90d55789 Merge pull request #4234 from carlaKC/htlcnotifier-unknownfailuredetail
routerrpc+lntest: add nil check for failure detail and add itest coverage
2020-05-06 16:31:43 -07:00
Olaoluwa Osuntokun 352d45a11e cmd/lncli: remove usage of Millisecond() for Go 1.12
The new table format for the pay command started to use the
`Millisecond()` method on `time.Duration`. However, this method was only
added in Go 1.13, so this breaks the build for Go 1.12. We replace this
by manual division. `time.Duration` "natively" is in nanoseconds, so we
covert to milli seconds by dividing my `time.Millisecond`, which is
1,000,000.
2020-05-06 16:22:47 -07:00
Olaoluwa Osuntokun 0dfb946afd Merge pull request #4241 from Roasbeef/listpayment-copy
channeldb: eliminate extra copy in QueryPayments
2020-05-05 15:36:46 -07:00
Olaoluwa Osuntokun 3769f74795 Merge pull request #4148 from carlaKC/lnwallet-evaluatehtlccoverage
lnwallet/test: add coverage for evaluateHtlcView
2020-05-04 17:30:31 -07:00
Olaoluwa Osuntokun bc49141ad5 Merge pull request #4242 from joostjager/itest-log-case-insensitive
itest: case insensitive log errors check
2020-05-04 16:57:29 -07:00
Olaoluwa Osuntokun cc1dbb5677 channeldb: eliminate extra copy in QueryPayments
In this commit, we eliminate an extraneous copy in the `QueryPayments`
method. Before this commit, we would copy each payment from the initial
FetchPayments call into a new slice. However, pointers to payments are
return from `FetchPayments`, so we can just maintain that same reference
rather than copying again when we want to limit our response.
2020-05-04 12:13:47 -07:00
Olaoluwa Osuntokun 9f5f48b20d Merge pull request #4089 from fguisso/acceptor
rpcserver: parameterize acceptortimeout
2020-04-30 19:03:55 -07:00
Olaoluwa Osuntokun e8c365dc2e Merge pull request #4207 from ErikEk/tor-socks-control-port-fix
tor: socks and control can not use the same host:port
2020-04-30 19:02:38 -07:00
Olaoluwa Osuntokun ea5193b104 Merge pull request #4192 from bhandras/fixes
mixed: apply fixes recommended by staticcheck and dead code removal
2020-04-30 19:01:53 -07:00
Olaoluwa Osuntokun 1a3194d302 build: bump version to v0.10.0-beta 2020-04-29 10:21:45 -07:00
Olaoluwa Osuntokun 1d548684e2 build: bump version to v0.10.0-beta.rc6 2020-04-28 19:53:28 -07:00
Olaoluwa Osuntokun 957b34262a Merge pull request #4230 from wpaulino/increase-zmq-timeout
chainregistry: increase zmq connection timeout with bitcoind backend
2020-04-28 19:49:12 -07:00
Olaoluwa Osuntokun 948fe8cfdb Merge pull request #4224 from guggero/psbt-warning
lncli+docs: add safety warning about not publishing PSBT manually
2020-04-28 19:40:15 -07:00
Olaoluwa Osuntokun 0cf63ae898 build: bump version to 0.10.0-beta.rc5 2020-04-23 18:13:24 -07:00
Olaoluwa Osuntokun 444eec2abc Merge pull request #4196 from joostjager/lncli-live
lncli: live table-based payment updates
2020-04-23 18:11:07 -07:00
Olaoluwa Osuntokun ce0a61abeb lnrpc/invoicesrpc: linter fix 2020-04-21 22:19:24 -07:00
Olaoluwa Osuntokun 0bc05f9d65 build: bump version to bump version to v0.10.0-beta.rc4 2020-04-21 18:12:57 -07:00
Olaoluwa Osuntokun cd9c1c7746 Revert "lncli: live table-based payment updates"
This reverts commit 6ffdf7ef1f.
2020-04-21 18:03:57 -07:00
Olaoluwa Osuntokun 6591408a9e build: bump version to bump version to v0.10.0-beta.rc3 2020-04-21 17:30:39 -07:00
Olaoluwa Osuntokun 1e51ec0a2d lnrpc/invoicesrpc: clamp down on max invoice size
In this commit, we move to clamp down somewhat on the max invoice size
after the limit was removed as part of the mpp changes. In #4210, it was
reported that a value of -1, would underflow and end up as 18 million
BTC, which would trip checks w.r.t the max expressible value in mSAT.
In this commit, we clamp things down to 100k BTC, which should be more
than enough for anybody.

Fixes #4210.
2020-04-21 16:44:44 -07:00
Olaoluwa Osuntokun b4e98874de Merge pull request #4212 from guggero/make-release
make+build: call release script from make
2020-04-21 16:16:12 -07:00
Olaoluwa Osuntokun 024980a23f Merge pull request #4205 from cfromknecht/mailbox-test-fixups
htlcswitch/mailbox_test: use mailboxContext everywhere
2020-04-21 16:12:15 -07:00
Olaoluwa Osuntokun 528dadd04b Merge pull request #4211 from cfromknecht/absolute-fee-floor
lnwallet: absolute fee floor sanity check
2020-04-21 16:11:43 -07:00
Olaoluwa Osuntokun c70a333ea7 Merge pull request #4182 from joostjager/routerrpc-legacy-revival
routerrpc: revive legacy send and track rpcs
2020-04-21 16:07:23 -07:00
Olaoluwa Osuntokun 4ed0a35b10 build: bump dep to cert v1.0.2 2020-04-20 14:17:53 -07:00
Olaoluwa Osuntokun e4d10fa149 Merge pull request #4209 from guggero/tls-ext-key-usage
cert: define ExtendedKeyUsage as required by macOS 10.15/iOS 13.
2020-04-20 14:14:43 -07:00
Olaoluwa Osuntokun 3b8ddece41 Merge pull request #4198 from joostjager/mpp-precheck
routing: payment splitting pre-check
2020-04-20 14:10:17 -07:00
Olaoluwa Osuntokun eec3799da9 build: bump version to bump version to v0.10.0-beta.rc2 2020-04-15 12:32:02 -07:00
Olaoluwa Osuntokun 30b7036709 Merge pull request #4195 from cfromknecht/mailbox-cancel-fixups
htlcswitch: mailbox cancel followups
2020-04-15 12:30:54 -07:00
Olaoluwa Osuntokun 95e2809ba3 build: bump version to v0.10.0-beta.rc1
We also add '.' to the semantic versioning alphabet to ensure it isn't
stripped out.
2020-04-14 20:08:36 -07:00
Olaoluwa Osuntokun 5955f83504 Merge pull request #4174 from cfromknecht/mailbox-cancel
htlcswitch: mailbox cancellation
2020-04-14 20:04:57 -07:00
Olaoluwa Osuntokun 7b066ad91e Merge pull request #4190 from guggero/fix-windows-build
make+lnd+config: fix Windows build and version string
2020-04-14 19:57:26 -07:00