Commit Graph

15980 Commits

Author SHA1 Message Date
ziggie
9d3c0d9e3a
routing: add new interface AdditionalEdge.
A new interface AdditionalEdge is introduced which allows us to
enhance the CachedEdgePolicy with additional information. We
currently only need a PayloadSize function which is then used to
determine the exact payload size when building a route to adhere
to the sphinx package size limit (BOLT04).
2024-02-01 17:37:43 +00:00
Yong
5fe99f06ac
Merge pull request #8446 from yyforyongyu/validate-deprecation
lnd: add warning logs if deprecated config options are used
2024-02-01 23:32:35 +08:00
yyforyongyu
1057eb729d
multi: add unsafedisconnect as a dev config
This commit adds a new dev config `unsafedisconnect` as we sometimes
want to disconnect nodes in our itests.
2024-02-01 21:21:18 +08:00
yyforyongyu
9adec89fa8
lncfg: hide deprecated routing.assumechanvalid and neutrino.feeurl 2024-02-01 21:21:16 +08:00
yyforyongyu
78d552de22
config+rpcserver: hide deprecated option unsafe-disconnect
Also fix a case where this deprecated flag is used. We will always
bypass the active channels check when `DisconnectPeer` because
`!r.cfg.UnsafeDisconnect` is always false.
2024-02-01 21:20:11 +08:00
yyforyongyu
157c84cc4d
multi: log warnings if deprecated config options are used
This commit adds warning logs if the user uses deprecated config
options, paving the way for future removal.
2024-02-01 21:20:11 +08:00
Olaoluwa Osuntokun
7d74165296
Merge pull request #8442 from ProofOfKeags/bugfix/shutdown-msg
peer: fix issue where we echo remote Shutdown
2024-01-31 12:05:30 -08:00
Olaoluwa Osuntokun
cf4f468ab5
Merge pull request #8437 from ellemouton/v0-17-3-tls-fix
tls_manager: let REST proxy skip tls cert verification
2024-01-30 11:22:31 -08:00
Keagan McClelland
317aaf9940 peer: fix issue where we echo remote Shutdown 2024-01-30 12:15:59 -05:00
Yong
c89005c3a1
Merge pull request #8431 from ziggie1984/unhandled-witness-type-taproot
walletrpc: Add Taproot witness types to rpc.
2024-01-30 11:40:07 +08:00
Yong
dd7b186622
Merge pull request #8426 from breez/expose-closing-tx
Expose closing tx in waiting_close_channels
2024-01-30 09:13:17 +08:00
Elle Mouton
404a50ae25
tls_manager: let REST proxy skip tls cert verification 2024-01-29 17:56:50 +02:00
ziggie
13e20e99e4
docs: add release-notes. 2024-01-29 15:10:15 +00:00
ziggie
339c5fe1f0
makefile: add rpc tags to the unit tests. 2024-01-29 15:09:22 +00:00
ziggie
4f77758419
walletrpc: Add Taproot witness types to rpc. 2024-01-29 15:09:22 +00:00
Jesse de Wit
172e8366d4
docs: add release note for 8426 2024-01-29 14:16:51 +01:00
Jesse de Wit
ef3aa84c10
lncli: add include_raw_tx flag to pendingchannels 2024-01-29 14:16:51 +01:00
Jesse de Wit
b6616bc040
itest: assert closing tx is set in waiting_close_channels 2024-01-29 14:16:51 +01:00
Jesse de Wit
e794bd37a4
lnrpc: include raw closing tx in waiting_close_channels 2024-01-29 14:16:50 +01:00
Yong
b76d3e64d3
Merge pull request #8428 from ziggie1984/prune-node-deadlock-blocksync
Fix Pruned Node Loss Sync Issue.
2024-01-29 20:42:02 +08:00
Oliver Gugger
c517d4ccd9
Merge pull request #8427 from yyforyongyu/fix-rpc-docs
trivial: fix docs on `ListPaymentsRequest`
2024-01-29 06:26:17 -06:00
Oliver Gugger
1e5ff5fa27
Merge pull request #8438 from guggero/fix-sendpayment-api-docs
routerrpc: make use of fee limit obvious in SendPaymentV2
2024-01-29 06:16:51 -06:00
Oliver Gugger
eb08a6f004
routerrpc: make use of fee limit obvious in SendPaymentV2 2024-01-29 13:45:14 +02:00
ziggie
141a30dc37
docs: update release-notes. 2024-01-29 10:23:03 +00:00
ziggie
d2c82c49ca
mod: update btcwallet version.
Update the btcwallet version to fix a case where fetching of
already pruned blocks from our peers was not garbage collected
when the request failed.
2024-01-29 10:23:03 +00:00
Yong
59feec44ca
Merge pull request #7976 from w3irdrobot/serialize-deserialize-amp
Serialize/deserialize AMP struct in hop
2024-01-29 09:48:05 +08:00
Olaoluwa Osuntokun
d44c72b979
Merge pull request #8345 from yyforyongyu/use-testmempoolaccept
lnwallet: perform mempool acceptance check before publishing
2024-01-26 18:54:43 -08:00
Alex Sears
0767a2cbc0
routerrpc: unmarshal AMP record in route hop marshalling 2024-01-26 15:21:43 -05:00
Olaoluwa Osuntokun
0d37621bcb
Merge pull request #8420 from ProofOfKeags/cleanup/contractcourt/naming
contractcourt: rename files for package consistency
2024-01-25 15:23:02 -08:00
yyforyongyu
a614888797
lnwallet/test: fix testPublishTransaction for neutrino 2024-01-26 03:01:20 +08:00
yyforyongyu
d2ab35629a
lnwallet/test: fix ZMQ format 2024-01-26 03:01:20 +08:00
Yong
2f1468000d
Merge pull request #8421 from ProofOfKeags/refactor/lnwallet/redundant-fields
lnwallet: remove redundant unused fields
2024-01-26 02:59:08 +08:00
Yong
b9a8e2f6d0
Merge pull request #8419 from bhandras/kvdb-embedded-postgres-upgrade
kvdb: embedded postgres upgrade to allow setting a custom `max_connections` config value
2024-01-25 23:18:46 +08:00
yyforyongyu
cb2c2e89dd
lnrpc: fix docs on ListPaymentsRequest 2024-01-25 19:49:29 +08:00
Keagan McClelland
9c2270a5ea lnwallet: remove redundant unused fields 2024-01-24 17:22:35 -08:00
Keagan McClelland
9b92b55b9b contractcourt: rename files for package consistency 2024-01-24 17:15:01 -08:00
yyforyongyu
783e914027
lnwallet/test: stop creating burning tx in tests
bitcoind v25.0 updated the `sendrawtransaction` RPC to have an optional
argument `maxburnamount` with a default value of 0. This means our
existing test that uses burning output cannot be published, hence, we
remove the usage of it in our tests and replace it with a normal tx.
2024-01-25 08:45:22 +08:00
Olaoluwa Osuntokun
11bafe84ff
lnwallet/test: add new tx publish sub-test for policy weight limits 2024-01-25 08:45:22 +08:00
Olaoluwa Osuntokun
a616fa3fb7
lnwallet/test: convert the tx publish tests to sub-tests 2024-01-25 08:21:11 +08:00
yyforyongyu
a6a8415a26
contractcourt: make sure ChainArbitrator is started properly
We should not fail to start the node if a republish attempt failed for a
channel's closing tx. Instead, we log an error to continue the startup
and let other channels continue their operations.
2024-01-25 07:54:39 +08:00
yyforyongyu
fb1c6ea6a7
btcwallet: proceed to call PublishTransaction on mempool errors
Previously, `PublishTransaction` in `btcwallet` will first mark the tx
label in db first before broadcasting it to the network. Even though the
broadcast may fail with the error already in mempool or already
confirmed, this tx label updating is still performed. To maintain the
old behavior, we now catch the errors from `TestMempoolAccept`, and make
sure to call the `PublishTransaction` to mark the tx label even there
are errors from mempool acceptance check.
2024-01-25 07:54:39 +08:00
yyforyongyu
1435ba5636
docs: add release note for testmempoolaccept 2024-01-25 07:54:39 +08:00
yyforyongyu
2686ca324a
lnwallet: check mempool acceptance before publishing
This commit adds a mempool acceptance check before broadcasting a given
transaction. To maintain the current behavior from
`BtcWallet.PublishTransaction`, the two errors, `ErrInMempool` and
`ErrAlreadyConfirmed` returned from `TestMempoolAccept` are ignored.
2024-01-25 07:54:39 +08:00
yyforyongyu
e4482421c9
gomod+chainreg: update btcwallet to use TestMempoolAccept 2024-01-25 07:54:35 +08:00
Andras Banki-Horvath
560ea95a59
docs: update release notes for 0.18 2024-01-24 21:38:54 +01:00
Andras Banki-Horvath
25af657ad5
kvdb: set postgres max_connections on the started instance 2024-01-24 21:38:54 +01:00
Andras Banki-Horvath
524fa66abf
kvdb: bump embedded postgres to v1.25.0 2024-01-24 21:38:53 +01:00
Olaoluwa Osuntokun
758ae6fbec
Merge pull request #8336 from lightningnetwork/fn-module-goodies
fn: add some new goodies to sub-module to be used in future PRs
2024-01-23 19:18:34 -08:00
Olaoluwa Osuntokun
1d1c1382d0
fn: add utility funcs/method for option type 2024-01-23 19:09:59 -08:00
Olaoluwa Osuntokun
1fc3f14467
fn: add new generic set container 2024-01-23 19:09:53 -08:00