Commit Graph
14037 Commits
Author SHA1 Message Date
Oliver Gugger d04182f482 docs: add release notes 2022-12-09 00:56:49 +01:00
Oliver Gugger f26a9a84d7 lntest: fix rescan test to show correct behavior
Now that we have patched the btcwallet version to the one that includes
the fix, we can adjust the rescan test to show the correct and expected
behavior.
2022-12-09 00:56:49 +01:00
Oliver Gugger 5e851912a7 mod: bump btcwallet to latest version 2022-12-09 00:56:49 +01:00
Oliver Gugger 2221d0ccb1 lntest+lntemp: add itest case for wallet rescan problem
In this commit we add a test that demonstrates the problem of ghost
UTXOs lingering in the wallet after a re-scan, even if they were spent.

NOTE: This test shows the incorrect behavior and will be adjusted in a
follow-up commit to show the correct behavior after patching the
btcwallet version.
2022-12-09 00:56:49 +01:00
Oliver Gugger a0385a535b Merge pull request #7197 from ffranr/add_chain_rpc_calls
lncli+chainrpc: add chainkit RPC service with endpoints GetBlock, GetBestBlock, GetBlockHash
2022-12-07 17:32:54 +01:00
ffranr d72d2edfea docs: add release notes for chainkit RPC/cli 2022-12-07 14:50:15 +00:00
ffranr bab526f655 cmd: add chain subcommand
Chain subcommand includes the commands: getblock, getbestblock, and getblockhash.

This commit removes conflicting neutrino cli commands.
2022-12-07 14:50:15 +00:00
ffranr 1345b3c0aa itest: add chainkit test
This test covers GetBlock, GetBestBlock, and GetBlockHash.
2022-12-07 14:50:15 +00:00
ffranr 561bf82985 chainrpc: add chainkit RPC service
New endpoints: GetBlock, GetBestBlock, and GetBlockHash.
2022-12-07 14:50:14 +00:00
Oliver Gugger 33a5c30671 Merge pull request #7174 from yyforyongyu/prepare-refactor-payment
Prepare for refactoring payment lifecycle
2022-12-07 12:56:06 +01:00
yyforyongyu 0e9bb5cbc6 docs: update release notes 2022-12-07 18:38:22 +08:00
yyforyongyu 271c36d348 channeldb: move payment status code into new file
This prepares the following expansion of the payment status codes.
2022-12-07 18:38:01 +08:00
yyforyongyu 8d49dfb07e routing: stop tracking totalAmount in paymentLifecycle
This commit removes the field `totalAmount` from `paymentLifecycle` and
only reads it from the channeldb payment.
2022-12-07 18:38:01 +08:00
yyforyongyu e3bc4f4cc9 htlcswitch+routing: rename GetPaymentResult to GetAttemptResult
This commit renames the method `GetPaymentResult` to be
`GetAttemptResult` to avoid potential confusion and to address the
one-to-many relationship between a payment and its attempts.
2022-12-07 18:38:01 +08:00
yyforyongyu d1611c999a routing: rename Fail to FailPayment
This commit renames the method `Fail` to be `FailPayment` to explicitly
address its purpose.
2022-12-07 18:38:01 +08:00
yyforyongyu 2fd4c1e318 channeldb+routing: fix format 2022-12-07 18:38:01 +08:00
Eugene b8c80dceef Merge pull request #7221 from ffranr/ci_update_coverage
CI: update test coverage library go-acc
2022-12-06 12:04:21 -08:00
ffranr 308e7ce72d lnrpc: identify *.proto files as separate files within a given directory 2022-12-06 12:52:31 +00:00
ffranr 03f9549f97 chainrpc: generalise chain notifier RPC server name 2022-12-06 12:52:25 +00:00
Oliver Gugger ddbe09be87 Merge pull request #7236 from yyforyongyu/fix-typo
proto: fix typo [skip ci]
2022-12-06 09:21:11 +01:00
yyforyongyu 7533de4a8f proto: fix typo [skip ci] 2022-12-06 14:04:42 +08:00
Olaoluwa Osuntokun 2477095473 Merge pull request #7209 from guggero/btcwallet-fund-psbt
mod+docs: bump btcwallet to latest version
2022-12-05 19:47:42 -08:00
Oliver Gugger 625c6f1949 Merge pull request #7227 from Crypt-iQ/tlv_change_to_p2p
multi: update to tlv/v1.1.0 and use new *P2P tlv decoding variants
2022-12-05 23:11:30 +01:00
eugene 60d4815b54 release-notes: update for 0.16.0 2022-12-05 09:32:59 -05:00
eugene 032632b4e0 multi: update to tlv/v1.1.0 and use new *P2P tlv decoding variants
This changes the call-sites in several places to use the *P2P variants
to not trigger an OOM on untrusted input. This makes the code safe with
the new tlv version. Note that the call-sites prior to this change were
also safe.
2022-12-05 09:32:56 -05:00
Oliver Gugger e23c5dca73 Merge pull request #7159 from yyforyongyu/code-review-6542
Payments and invoices filtering by creation date
2022-12-05 14:39:17 +01:00
ffranr 2067e32862 CI: update test coverage library go-acc 2022-12-05 13:15:10 +00:00
Tommy Volk 6dfbf17b74 gitrelease-notes: update release notes for 0.16.0 2022-12-05 20:04:47 +08:00
yyforyongyu 29652d88ee lntest: add itest for timestamp filters 2022-12-05 20:04:47 +08:00
yyforyongyu 57b7eb7814 cli: update listinvoices and listpayments to use the date filter 2022-12-05 20:04:47 +08:00
yyforyongyu e9269c2093 channeldb+lnd: rpc server filters payments by date 2022-12-05 20:04:47 +08:00
yyforyongyu b7c829f792 proto: add creation data filters in ListPaymentsRequest 2022-12-05 20:04:42 +08:00
yyforyongyu 234b9a3d97 channeldb+lnd: rpc server filters invoices by date 2022-12-05 20:03:58 +08:00
yyforyongyu cfa2cb01d0 proto: add creation date filters in ListInvoiceRequest 2022-12-05 20:03:55 +08:00
Tommy Volk 372333fd2b lnrpc: clarify proto documentation for Invoice 2022-12-05 20:01:27 +08:00
Oliver Gugger 8eebd4feba mod+docs: bump btcwallet to latest version 2022-12-05 09:33:10 +01:00
Oliver Gugger 91c0a19807 Merge pull request #6913 from bottlepay/relax-failure-len-check
htlcswitch: relax failure message length check
2022-12-02 16:00:21 +01:00
Joost Jager 4c8ea29336 lnwire: allow longer failure messages
This fixes an incompatibility where lnd enforces a strict 256 byte
failure message, where as the spec sets this only as the recommended
length.
2022-12-02 14:27:59 +01:00
Oliver Gugger e614d806e5 Merge pull request #7204 from YusukeShimizu/fix-liveliness-typo
Unified valiable name and comment
2022-12-02 13:10:55 +01:00
Joost Jager 5ff5838d74 lnwire: add extra opaque data to FailIncorrectDetails 2022-12-02 09:28:03 +01:00
Joost Jager 5f4465b14f link: ensure minimum failure reason length
This commit modifies the link behavior so that every failure
reason that we pass back is length-compliant (>=256 bytes).
2022-12-02 09:28:02 +01:00
Joost Jager 9730bc1ca0 lnwire: verify failure message length
Adds extra checks to make sure the failure message
is well-formed.
2022-12-02 09:04:59 +01:00
Joost Jager e9440a24a2 htlcswitch/test: more realistic mock encryption
This mock is used in the switch test TestUpdateFailMalformedHTLCErrorConversion.
But because the mock isn't very realistic, it doesn't detect problems
in the handling of malformed failures in the link.
2022-12-02 09:04:59 +01:00
Oliver Gugger eca82d986c Merge pull request #7207 from guggero/gossip-flag-fix
lncfg: fix gossip.pinned-syncers flag description
2022-11-28 14:01:11 +01:00
Oliver Gugger 00eda60df5 docs: add release notes 2022-11-28 09:58:32 +01:00
Oliver Gugger 542bbbbc30 lncfg: fix gossip.pinned-syncers flag description
The gossip.pinned-syncers flag is declared as a string slice which means
it should not be a comma separated list of elements but the flag should
be specified multiple times instead.
2022-11-28 09:55:18 +01:00
bruwbird 274938ed45 fix typo liveliness 2022-11-25 21:52:00 +09:00
Oliver Gugger 71fc52dfe3 Merge pull request #7193 from guggero/taproot-default-change
lnwallet/btcwallet: use taproot addrs for change outputs from SendCoins
2022-11-22 17:11:44 +01:00
Oliver Gugger e9fb8f691f Merge pull request #7194 from ffranr/fix_dockerfile_comment
docker: correct comment concerning lnd build/install
2022-11-22 16:05:31 +01:00
Olaoluwa Osuntokun aa20bc14d7 docs/release-notes: add entry for 0.15.5
Adds an entry for the change addr bug fix, and a missing entry for the
funding locked sleep fix.
2022-11-22 13:44:55 +01:00