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
Olaoluwa Osuntokun
b7d5667db0
Merge pull request #4184 from wpaulino/upfront-shutdown-reservation-cleanup
...
fundingmanager: check remote peer upfront shutdown support before reservation
2020-04-14 11:15:37 -07:00
Olaoluwa Osuntokun
a53a6f160e
Merge pull request #4175 from cfromknecht/fix-chanstatus-string
...
channeldb: correct HasChanStatus for ChanStatusDefault, fix rpc channel status
2020-04-13 18:47:33 -07:00
Olaoluwa Osuntokun
08c12d55fc
Merge pull request #4169 from bhandras/invoice_expiry_watcher_test_timeout_fix
...
invoices: elminitate sleep from expiry watcher tests
2020-04-13 18:46:59 -07:00
Olaoluwa Osuntokun
ee35dc1acf
Merge pull request #4185 from Roasbeef/btcutil-psbt-fixes
...
build: update to latest btcutil and psbt versions
2020-04-13 18:33:10 -07:00
Olaoluwa Osuntokun
84e577af45
build: update to latest btcutil and psbt versions
...
The latest versions of the `psbt` package includes some decoding bug
fixes.
2020-04-13 17:02:32 -07:00
Olaoluwa Osuntokun
786e278e12
Merge pull request #4163 from cfromknecht/version-rpc
...
verrpc: add GetVersion endpoint
2020-04-13 16:03:52 -07:00
Olaoluwa Osuntokun
8c2647de6b
Merge pull request #4172 from cfromknecht/witness-size
...
input: assert witness size constants
2020-04-10 16:45:04 -07:00
Olaoluwa Osuntokun
2c2b79d300
Merge pull request #4170 from joostjager/fix-payment-fee
...
lnrpc: fix payment marshalling
2020-04-10 13:52:46 -07:00
Olaoluwa Osuntokun
b947ed552a
Merge pull request #4075 from Roasbeef/wumbo-invoices
...
rpc: allow wumbo invoices
2020-04-09 19:26:41 -07:00
Olaoluwa Osuntokun
363caa441a
rpc: allow wumbo invoices
...
In this commit, we remove the restriction surrounding the largest
invoices that we'll allow a user to create. After #3967 has landed,
users will be able to send in _aggregate_ a payment larger than the
current max HTLC size limit in the network. As a result, we can just
treat that value as the system's MTU, and allow users to request
payments it multiples of that MTU value.
A follow up to this PR at a later time will also allow wumbo _channels_.
However, that requires us to tweak the way we scale CSV values, as post
wumbo, there is no true channel size limit, only the
_local_ limit of a given node. We also need to implement a way for nodes
to signal to other nodes their accepted max channel size.
2020-04-09 19:02:08 -07:00
Olaoluwa Osuntokun
1354a46170
Merge pull request #3967 from joostjager/mpp-send
...
routing: multi-shard mpp send
2020-04-09 18:54:45 -07:00
Olaoluwa Osuntokun
3ad7ab223e
Merge pull request #3972 from joostjager/notify-htlc-arrival
...
routing: extend trackpayment with htlc events
2020-04-08 15:22:18 -07:00
Olaoluwa Osuntokun
7e6f3ece23
Merge pull request #3960 from bitromortac/listpayments-pagination
...
channeldb+lnrpc+lncli: listpayments pagination support
2020-04-07 17:06:37 -07:00
Olaoluwa Osuntokun
e52c5df8ab
Merge pull request #4140 from carlaKC/lnrpc-pendingchannelinitiator
...
lnrpc: use initiator enum for pending channel open initiator
2020-04-06 15:46:46 -07:00
Olaoluwa Osuntokun
173f7d88e0
Merge pull request #4121 from cfromknecht/sort-htlc-sigs
...
lnwallet: apply BIP69+CLTV tie-break to HTLC signature order
2020-04-03 18:12:58 -07:00
Olaoluwa Osuntokun
a8a0aaa214
Merge pull request #4143 from cfromknecht/open-channel-flakes
...
lntest/itest/lnd_test: wait when calling OpenChannel
2020-04-03 18:10:45 -07:00
Olaoluwa Osuntokun
c88b910a35
Merge pull request #4151 from cfromknecht/cnct-log-fixes
...
contractcourt/chain_watchter: fix broken log stmts
2020-04-03 18:08:32 -07:00
Olaoluwa Osuntokun
2e0f7c4ac2
Merge pull request #4091 from wpaulino/wallet-scan-relevant-key-scopes
...
build: update btcwallet dependency to only scan relevant key scopes
2020-04-03 18:07:59 -07:00
Olaoluwa Osuntokun
92ee49767f
Merge pull request #3970 from halseth/amp-router-mvp-2020
...
MPP: Enable MultiPathPayments for payment lifecycle
2020-04-03 13:53:19 -07:00
Olaoluwa Osuntokun
c14d99f05d
Merge pull request #4133 from wpaulino/send-gossip-on-peer-conn
...
peer: send local node announcement upon establishing peer connections
2020-04-02 17:02:04 -07:00
Olaoluwa Osuntokun
9b39692bb2
contractcourt: add additional logging of commitments at play
...
In this commit, we add some additional logging of the commitments at
play when we detect a channel closure on-chain. This should help to
debug things more in the future as we don't log the full commitments
anywhere. We also now also print the type of commitment as well, as a
follow up from the recent anchor outputs work. In the near future, as we
implement a dynamic commitments update protocol, always logging the
commitment type as well will likely be useful for debugging purposes.
2020-04-02 16:46:33 -07:00
Olaoluwa Osuntokun
77df8e3a43
Merge pull request #4130 from cfromknecht/open-channel-refactor
...
rpcserver: align OpenChannel + OpenChannelSync request parsing
2020-03-31 18:05:00 -07:00
Olaoluwa Osuntokun
90dfb97224
Merge pull request #4087 from Crypt-iQ/wt_hs_0310
...
watchtower: automatically create tor hidden service if enabled
2020-03-30 16:42:35 -07:00
Olaoluwa Osuntokun
0b59ded7ca
Merge pull request #4073 from joostjager/anchor-sweep-itest
...
lntest/itest: select anchor commitment format and sweeping itests
2020-03-27 13:23:02 -07:00
Olaoluwa Osuntokun
eb10594381
Merge pull request #4092 from Crypt-iQ/peer_ll_0210
...
link+peer: buffer messages until link active
2020-03-27 13:20:25 -07:00
Olaoluwa Osuntokun
03ff5961c6
Merge pull request #3865 from bhandras/betweenness_centrality
...
calculate betweenness centrality of nodes
2020-03-27 13:20:00 -07:00
Olaoluwa Osuntokun
31de32686e
Merge pull request #4107 from Crypt-iQ/switch_err_0220
...
htlcswitch: log fixes
2020-03-26 16:45:58 -07:00
Olaoluwa Osuntokun
1c398d5f26
Merge pull request #4078 from yyforyongyu/bitcoind-estimatemode
...
multi: support config bitcoind fee estimate mode
2020-03-26 16:21:17 -07:00
Olaoluwa Osuntokun
d9bcd711d7
Merge pull request #3924 from guggero/itest-scrypt
...
itest: use fast scrypt options for aezeed, macaroons DB and wallet DB
2020-03-26 16:20:31 -07: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
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
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
Olaoluwa Osuntokun
071c7cbe78
lnd: convert to use new kvdb abstraction
2020-03-18 19:35:23 -07:00
Olaoluwa Osuntokun
21521ff610
autopilot: convert to use new kvdb abstraction
2020-03-18 19:35:20 -07:00
Olaoluwa Osuntokun
f1963084a8
chainntnfs: convert to use new kvdb abstraction
2020-03-18 19:35:16 -07:00
Olaoluwa Osuntokun
98170e00ef
lnwallet: convert to use new kvdb abstraction
2020-03-18 19:35:13 -07:00
Olaoluwa Osuntokun
46cec2fdc0
sweep: convert to use new kvdb abstraction
2020-03-18 19:35:10 -07:00
Olaoluwa Osuntokun
ace7a78494
discovery: covert to use new kvdb abstraction
2020-03-18 19:35:07 -07:00
Olaoluwa Osuntokun
852b2380a9
macaroons: convert to use new kvdb abstraction
2020-03-18 19:35:04 -07:00
Olaoluwa Osuntokun
557b930c5f
watchtower: convert to use new kvdb abstraction
2020-03-18 19:35:01 -07:00
Olaoluwa Osuntokun
28bbaa2a94
routing: convert to use new kvdb abstraction
2020-03-18 19:34:58 -07:00
Olaoluwa Osuntokun
4e68914e9d
htlcswitch: convert to use new kvdb abstraction
2020-03-18 19:34:55 -07:00
Olaoluwa Osuntokun
320101d054
contractcourt: convert to use new kvdb abstraction
2020-03-18 19:34:52 -07:00
Olaoluwa Osuntokun
f0911765af
channeldb: convert to uniformly use new kvdb abstractions
...
In this commit, we migrate all the code in `channeldb` to only reference
the new `kvdb` package rather than `bbolt` directly.
In many instances, we need to add two version to fetch a bucket as both
read and write when needed. As an example, we add a new
`fetchChanBucketRw` function. This function is identical to
`fetchChanBucket`, but it will be used to fetch the main channel bucket
for all _write_ transactions. We need a new method as you can pass a
write transaction where a read is accepted, but not the other way around
due to the stronger typing of the new `kvdb` package.
2020-03-18 19:34:49 -07:00
Olaoluwa Osuntokun
fc808ac538
channeldb/kvdb: create new package for an abstract kv store
...
In this commit, we create a new package `kvdb`, which is meant to serve
as the basis for any future database abstractions within `lnd`. Rather
than directly use the `walletdb` package (which we base off of), we
instead use a series of type-aliases to re-type the fundamental
types/interfaces of the `walletdb` package. This lets us type
`kvdb.RwTx` instead of `walletdb.ReadWriteTransaction` everywhere.
Additionally, our usage of type-aliases is also intended to create an
easy pathway in the future wherein we can gradually re-defined or
re-implement these types to wean off of the `walletdb` package.
2020-03-18 19:34:45 -07:00