Commit Graph

13252 Commits

Author SHA1 Message Date
Oliver Gugger
9e6f0ef46b
Merge pull request #6644 from guggero/connect-peer-request-comment
lnrpc: fix comment and formatting in ConnectPeerRequest [skip ci]
2022-06-15 09:57:34 +02:00
Oliver Gugger
c492f367cd
lnrpc: fix comment and formatting in ConnectPeerRequest [skip ci]
Fixes #6643.
2022-06-14 22:09:51 +02:00
Oliver Gugger
06710604fe
Merge pull request #6641 from priyanshiiit/invoice_params
lnrpc: improves invoice documentation
2022-06-14 17:11:28 +02:00
priyanshiiit
1e0a271ddb lnrpc: improves invoice documentation [skip ci] 2022-06-14 15:56:36 +05:30
Oliver Gugger
593962b788
Merge pull request #6635 from petertodd/2022-fix-missing-p2tr-help
Add p2tr to supported address help message
2022-06-13 09:53:49 +02:00
Peter Todd
eef2f1caf7
Add p2tr to supported address help message 2022-06-11 00:53:36 -04:00
Olaoluwa Osuntokun
39b522b878
build: bump version to v0.15.0-beta.rc6 2022-06-10 16:11:19 -05:00
Olaoluwa Osuntokun
eb69f038f2
Merge pull request #6631 from Roasbeef/docker-container-update
build: update all Dockerfiles to build w/ Go 1.18.2
2022-06-10 14:02:17 -07:00
Olaoluwa Osuntokun
4d7ff6a73c
Merge pull request #6632 from lightningnetwork/addr-type-taproot
walletkit+sweeper: add forgotten P2TR address type
2022-06-10 14:02:06 -07:00
Oliver Gugger
427702dbe6
rpcwallet: use PSBT prev out fetcher 2022-06-10 22:03:45 +02:00
Oliver Gugger
a3e4db60cd
sweep: allow sweeper to sweep P2TR inputs 2022-06-10 22:03:41 +02:00
Olaoluwa Osuntokun
c0672b80c2
build: update all Dockerfiles to build w/ Go 1.18.2 2022-06-10 11:32:39 -07:00
Oliver Gugger
36d6656d0d
walletrpc: add p2tr to NextAddr and BumpFee RPCs 2022-06-10 14:03:46 +02:00
Oliver Gugger
9dea4f3b5e
Merge pull request #6628 from bhandras/bhandras_key_update
keys: update key for bhandras
2022-06-09 12:21:30 +02:00
Andras Banki-Horvath
c09a81624c
keys: update key for bhandras 2022-06-09 09:28:46 +02:00
Olaoluwa Osuntokun
f66463bb05
build: bump version to v0.15.0-beta.rc5 2022-06-08 12:59:03 -07:00
Olaoluwa Osuntokun
69a2b32b1f
Merge pull request #6627 from Roasbeef/btcwallet-btcd-neutrino-bump
build: bump btcd, btcwallet and neutrino to latest versions
2022-06-08 12:24:44 -07:00
Olaoluwa Osuntokun
c69138e00d
build: bump btcd, btcwallet and neutrino to latest versions 2022-06-08 11:40:50 -07:00
Olaoluwa Osuntokun
12eddae47a
build: bump version to v0.15.0-beta.rc4 2022-06-02 14:47:18 -07:00
Olaoluwa Osuntokun
622c8402a0
Merge pull request #6611 from Roasbeef/psbt-validation-fix
lnrpc/walletrpc: reject PSBT packets w/o any UTXO input info
2022-06-02 14:44:59 -07:00
Olaoluwa Osuntokun
a46ffe4299
Merge pull request #6612 from Roasbeef/tor-bump
build: bump tor version to v1.0.1
2022-06-02 14:44:38 -07:00
Olaoluwa Osuntokun
2298ef81ab
lnrpc/walletrpc: reject PSBT packets w/o any UTXO input info
Fixes https://github.com/lightningnetwork/lnd/issues/6567
2022-06-02 13:05:58 -07:00
Olaoluwa Osuntokun
1017efe18b
Merge pull request #6605 from Roasbeef/proper-sweep-lease-second-level-success
contractcourt: unify the lease specific HTLC sweeping logic
2022-06-02 13:03:10 -07:00
Olaoluwa Osuntokun
9b0718ae35
contractcourt: unify the lease specific HTLC sweeping logic
In this commit, we consolidate the _lease specific_ logic for the
success and timeout HTLC resolvers. We do this with the addition of a
new struct which is then composed via struct embedding with the two
existing structs. This fixes a flake in the integration tests by
ensuring the height is set up front, rather than eventually once the
height matches the lock time.
2022-06-01 16:42:33 -07:00
Olaoluwa Osuntokun
199f9d1139
Merge pull request #6600 from bhandras/invoiceregistry-deadlock
invoices: fix deadlock in the invoice registry
2022-06-01 14:59:55 -07:00
Olaoluwa Osuntokun
fb119446c1
build: bump tor version to v1.0.1 2022-06-01 13:54:56 -07:00
Olaoluwa Osuntokun
addbbc0e1a
Merge pull request #6608 from Roasbeef/btcwallet-psbt-bip32-taproot-fix
build: upgrade to latest version of btcwallet
2022-06-01 13:49:50 -07:00
Olaoluwa Osuntokun
5d98635ab5
build: upgrade to latest version of btcwallet
This commit upgrades to the latest version of btcwallet that fixes an
issue that would cause us to not properly sign a validate populated PSBT
in certain scenarios.

Fixes https://github.com/lightningnetwork/lnd/issues/6579
2022-06-01 10:24:31 -07:00
Olaoluwa Osuntokun
5ba033bed8
Merge pull request #6594 from yyforyongyu/fix-data-race
channeldb: fix data race in TestSerializeRevocationLog
2022-05-31 16:07:51 -07:00
yyforyongyu
2b5d535208
channeldb: fix data race in TestSerializeRevocationLog
When testing serializing revocation log, we need to also copy its
`HTLCEntries` as the serialization of the HTLC involves a writing to the
`htlc.amtTlv` field.
2022-06-01 02:20:44 +08:00
Andras Banki-Horvath
699f9c0d23
docs: update release notes for 0.15.0 2022-05-31 17:36:44 +02:00
Andras Banki-Horvath
98f39deb38
invoices: fix deadlock in hodl subscription handling 2022-05-31 17:36:43 +02:00
Andras Banki-Horvath
cc8a1f0d2b
invoices: fix deadlock in notification handling 2022-05-31 17:36:40 +02:00
Olaoluwa Osuntokun
1e0d6ec0ad
Merge pull request #6586 from Crypt-iQ/nil_htlcset
contractcourt: make empty htlcSets for closed channels
2022-05-28 19:59:25 -07:00
eugene
160d63b88e
contractcourt: make empty htlcSets for closed channels
This prevents a panic where an insert is attempted on a nil map via
updateActiveHTLCs. This panic would occur if the channel arbitrator
was in a buggy state, possibly introduced by power loss or via
SIGKILL.
2022-05-27 16:18:02 -04:00
Olaoluwa Osuntokun
08e4e66574
build: bump version to v0.15.0-beta.rc3 2022-05-23 18:42:48 -07:00
Olaoluwa Osuntokun
e98a739130
Merge pull request #6518 from Crypt-iQ/dupestone
htlcswitch: remove synchronous link handoff, special-case keystone err
2022-05-23 16:51:19 -07:00
Olaoluwa Osuntokun
ab91f85d05
Merge pull request #6563 from yyforyongyu/export-chanstatus
multi: export channel status field in migration25
2022-05-23 11:26:53 -07:00
yyforyongyu
36b646496a
docs: update release note for migrations fix 2022-05-23 05:36:14 +08:00
yyforyongyu
d7bb7cd9a7
migration27: add unit test to cover ChanStatusRestored 2022-05-23 05:13:56 +08:00
yyforyongyu
7cf28773bf
multi: export channel status field in migration25
Previously, in `migration25.OpenChannel`, there was a private field
`chanStatus` used to keep track of the channel status. The following
migrations, `migration26` and `migration27` also have their own
`OpenChannel` defined, with `migration26` inherited from `migration25`,
and `migration27` inherited from `migration26`. The private field
`chanStatus`, however, is NOT inherited and each of the migrations uses
its own. This is fine for reading and writing as, under the hood, the
`chanStatus` is just a `uint8` value. Because each migration has its own
fetcher and putter, it can safely access its private field to read and
write it correctly.

The issue pops up when we use the method
`migration25.FundingTxPresent()`. Because it's evaluating its channel
status using its own private field `chanStatus`, this field would always
be the default value(`ChanStatusDefault`), leading the statement
`!c.hasChanStatus(ChanStatusRestored)` to always be true. Thus a
restored channel will be mistakenly considered to have funding tx
present, causing failures in reading the channel info in the following
migrations.

We fix this by exporting the `ChanStatus` field so its value can be set
by following migrations.
2022-05-23 03:55:00 +08:00
Olaoluwa Osuntokun
164a9c6f68
build: bump version to v0.15.0-beta.rc2 2022-05-20 00:08:28 -07:00
Olaoluwa Osuntokun
3e5b5d52f0
Merge pull request #6551 from yyforyongyu/fix-migration
channeldb: change balance fields to tlv records and migrate historical bucket
2022-05-19 16:35:31 -07:00
yyforyongyu
dae8e430d3
docs: update release note re patched fields 2022-05-20 06:55:34 +08:00
yyforyongyu
3458b2eb7d
channeldb+migration27: patch balance fields for historical chan
This commit adds a new migration to patch the two balance fields,
`InitialLocalBalance` and `InitialRemoteBalance` for the historical
channels. Because they are not saved previously, for historical channels
prior to the revocation log PR, these fields will be empty.
2022-05-20 06:55:31 +08:00
yyforyongyu
55746e427e
channeldb+migration26: migrate balance fields into tlv records 2022-05-19 03:34:24 +08:00
yyforyongyu
de2bcbf925
migration25: export methods to be used for following migrations
This commit exports several private methods to be used in later
migrations. It's safe to do so as no actual logic or migration scheme is
changed.
2022-05-19 03:34:13 +08:00
yyforyongyu
2ec459df6c
channeldb: use TLV for InitialLocalBalance and InitialRemoteBalance
This commit changes the encoding scheme for the fields
`InitialLocalBalance` and `InitialRemoteBalance` and use TLV instead.
2022-05-18 19:46:09 +08:00
Oliver Gugger
e319fb888e
Merge pull request #6547 from Crypt-iQ/boltfix_05-22
channeldb: copy value from boltdb's Get instead of using it directly
2022-05-17 19:43:03 +02:00
eugene
759d74ee15
release-notes: update for 0.15.0 2022-05-17 11:27:11 -04:00