Commit Graph
36 Commits
Author SHA1 Message Date
Mohamed Awnallah c9dea6d621 tls_manager_test.go: reproduce partial tls files handling
When there is only one of the tls pairs (key/certificate) and the
other is missing, the TLS manager currently assumes it exists
and ignore generating them. This results in error propgated to user
that the other tls pair file is missing/not found.
2025-11-27 13:33:06 +00:00
Mohamed Awnallah f761dc4c7a docs: update release notes v0.20.0 2025-10-22 18:01:48 +00:00
Mohamed Awnallah c6f458e478 lnd.go: sync headers before chain notifier startup to prevent premature rescan
This commit addresses a regression where Neutrino rescanning starts
from an outdated height (~100k blocks behind) instead of using the
current synced height.

Root Cause:
In commit 16a8b623b, the initialization order was changed so that
Chain Notifier starts before wallet syncing completes. This means
the rescan begins using the stale height from BuildChainControl
rather than the fully synced height.

Old behavior (commit 1dfb5a0c2):
1. RPC server starts
2. Headers sync as part of daemon server
3. Chain Notifier starts after sync completes
4. Rescan begins from current (synced) height

Current behavior (regression):
1. Chain Notifier starts in newServer (before RPC)
2. Wallet sync happens after RPC server starts
3. Rescan uses outdated height from BuildChainControl

Solution:
- Ensure headers are fully synced before starting the chain notifier,
and after starting the RPC server.
- Move chain notifier startup to its correct location after headers are
fully synced.
- Make sure the starting beat is lazily called after chain notifier
started and before that starting beat result is used.
2025-10-22 17:59:06 +00:00
Mohamed Awnallah ad966157fc docs: add release note 2025-09-03 01:11:35 +00:00
Mohamed Awnallah a0057c2026 lnwire: add DNSAddress type 2025-09-02 17:51:31 +00:00
Mohamed AwnallahandElle Mouton 7acd6018c9 lnwire: remove AddrLen helper
In this commit, we remove `AddrLen` as prepration step
before adding DNS address type which will have a var length.

Co-authored-by: Elle Mouton <elle.mouton@gmail.com>
2025-09-02 17:51:31 +00:00
Mohamed Awnallah e8283e958c lnwallet/test: make the timeout err msg and actual timeout consistent 2025-08-15 06:05:21 +00:00
Mohamed Awnallah e7d30e0790 docs: update release notes 2025-06-14 14:31:57 +00:00
Mohamed Awnallah d26a84e18b server.go: prevent partial mutation of currNodeAnn
In this commit, we prevent partial mutation of current
node announcement during announcement signing. If node
announcement signing failed the current node announcement
becomes inconsistent.
2025-06-14 14:23:34 +00:00
Mohamed Awnallah d4044c2fb6 docs: update release-notes-0.19.0.md
In this commit, we warn users about the removal
of RPCs `SendToRoute`, `SendToRouteSync`, `SendPayment`,
and `SendPaymentSync` in the next release 0.20.
2025-01-31 16:23:43 +00:00
Mohamed Awnallah 8d3611a3bd lnrpc: deprecate legacy RPCs
In this commit, we deprecate `SendToRouteSync`
and `SendPaymentSync` RPC endpoints.
2025-01-29 02:48:22 +00:00
Mohamed Awnallah e636c76300 chore: change register to registered [skip ci] 2024-12-28 23:06:07 +02:00
Mohamed Awnallah b683b385cd docs: update release-notes-0.18.0.md 2024-04-24 18:49:53 +02:00
Mohamed Awnallah 6e1d9b8d6a lncli: update AllPayments in deletePayments 2024-04-24 18:49:01 +02:00
Mohamed Awnallah 3364d2f2d6 lntest: delete all payments in DeleteAllPayments 2024-04-24 18:48:59 +02:00
Mohamed Awnallah 5c3015b223 rpcserver: validate DeleteAllPayments options 2024-04-24 18:48:57 +02:00
Mohamed Awnallah 4f48cc69fb lnrpc: add all_payments opt to DeleteAllPayments 2024-04-24 18:48:52 +02:00
Mohamed Awnallah 130fdbde73 docs: update the release-notes-0.18.0.md 2024-04-09 19:08:38 +02:00
Mohamed Awnallah df9f1485a7 chainreg: add checkOutboundPeers function
In this commit we add `checkOutboundPeers` function
to the `cc.HealthCheck` function.
2024-04-09 19:08:36 +02:00
Mohamed Awnallah 31526a0191 docs: update the release-notes-0.18.0 2024-04-01 19:08:24 +02:00
Mohamed Awnallah 1a2d50d385 multi: add coin selection strategy option to all on-chain rpcs
In this commit, we add the coin selection strategy option to the following
on-chain RPCs `fundpsbt`, `batchopenchannel`, `estimatefee`, `sendcoins`,
`sendmany`, and `sendoutputs`.
2024-04-01 19:08:22 +02:00
Mohamed Awnallah a0b0e7aa62 lncli: add coin selection strategy option to on-chain rpc commands
In this commit we add coin selection strategy option to the
following on-chain rpc commands `fundpsbt`, `fundtemplatepsbt`,
`batchopenchannel`, `estimatefee`, `sendcoins`, and `sendmany`.
2024-04-01 19:08:19 +02:00
Mohamed Awnallah 7c2c0dcf98 lnrpc+lnd+config: add coin selection strategy to all on-chain rpcs
In this commit, we add the coin selection strategy option
to all on-chain RPCs `FundPsbt`, `BatchOpenChannel`, `EstimateFee`,
`SendMany`, `SendCoins`, `SendOutputs`.
2024-04-01 19:08:01 +02:00
Mohamed Awnallah 1812b0e56e scripts+dev.Dockerfile: address dockerfile build issue 2024-03-18 13:47:39 +02:00
Mohamed Awnallah e16efd6f08 lnwallet: clarify-available-commitment-balance-message [skip ci] 2024-03-15 11:18:57 +02:00
Mohamed Awnallah 0add4fcec7 docs: update the release-notes-0.18.0.md 2024-03-14 17:55:59 +02:00
Mohamed Awnallah 3e5f03eb0b config_test.go: add test cases for supplyEnvValue 2024-03-14 17:55:59 +02:00
Mohamed Awnallah ae1c470cb4 config.go: support utilizing env variables in lnd.conf file
In this commit, we support utilizing the usage of enviroment variables in `lnd.conf` file
for `rpcuser` and `rpcpass` fields by adding `supplyEnvValue` function in `config.go`
that returns the value of the specified environment variable, the fall-back value
if provided, or the original input string if no matching environment variables are found or set.
2024-03-14 17:53:43 +02:00
Mohamed Awnallah fb5b425c40 docs: update release-notes-0.18.0 2024-03-13 21:18:24 +02:00
Mohamed Awnallah 158b802f49 lncli+makefile: generate man pages automatically for lncli and lnd 2024-03-13 21:18:23 +02:00
Mohamed Awnallah dfd1636f18 scripts: add gen_man_pages.sh script 2024-03-13 21:18:23 +02:00
Mohamed Awnallah 043834c698 config.go: mention that --lnddir option overwrites all other directory options [skip ci] 2024-02-05 11:30:09 +02:00
Mohamed Awnallah 1402ffd17b protolint: configure protolint and fix the protolinting issues
This PR addresses the following:
- Install and Configure protolint to enforce the protobuf style guide rules in the CI.
- Fix the protolinting issues (package and import ordering) while maintaining the comaptibility.
2024-01-22 22:00:00 +02:00
Mohamed Awnallah 8407e6989e fix: fix typo "(cltv_expiry" to "(cltv_expiry)" [skip ci] 2024-01-20 17:31:19 +02:00
Mohamed Awnallah a7914af264 docker: setup bitcoind docker image in the docker compose yaml file 2024-01-19 15:33:47 +02:00
Mohamed Awnallah 99908ed2dc routing: deep copy any transaciton we obtain from GetBlock call. 2024-01-15 11:35:55 +02:00