Andras Banki-Horvath
4f5c806ba5
loopdb: add helper methods to update swap costs
...
This commit adds the necessary sqlc code and SwapStore function to
update swap costs for all swaps in one transaction.
2024-06-03 14:54:18 +02:00
Andras Banki-Horvath
08aa4db35d
loopout: correctly account for the prepay amount when calculating costs
...
Previously we'd not account for the prepay amount which resulted in the
total swap cost reported being lower than what it actually is.
2024-06-03 14:54:18 +02:00
Boris Nagaev
22dd2e8bd1
Merge pull request #759 from starius/sweepbatcher-avoid-adding-to-two-batches
...
sweepbatcher: exit early in handleSweep
2024-05-30 10:18:44 -03:00
Boris Nagaev
4258b95dd2
sweepbatcher: fix too long lines
2024-05-29 12:17:18 -03:00
Boris Nagaev
0b2c177445
sweepbatcher: exit early in handleSweep
...
If the sweep was successfully updated in the batch, no need to
try to add it to all other batches.
Added a test reproducing adding a sweep to both batches without this change.
2024-05-29 12:03:14 -03:00
Boris Nagaev
a135eb81f0
Merge pull request #755 from starius/sweepbatcher-changes
...
sweepbatcher: small refactorings
2024-05-27 10:16:11 -03:00
Boris Nagaev
870b60fada
sweepbatcher: fix docstring
2024-05-27 10:03:19 -03:00
Boris Nagaev
6def712dfe
sweepbatcher: fix typos in annotations of methods
2024-05-27 10:03:19 -03:00
Boris Nagaev
dc5d0fe30c
sweepbatcher: narrow down interface of swapStore
...
Only one method of loopdb.SwapStore is used (FetchLoopOutSwap).
Local interface LoopOutFetcher was defined to reflect this.
2024-05-27 10:03:19 -03:00
Boris Nagaev
b5b17991a5
sweepbatcher: use method AddSweep in test
2024-05-27 10:03:19 -03:00
Alex Bosworth
951f98147d
Merge pull request #756 from lightninglabs/update-to-v0.28.2
...
version: bump version to v0.28.2-beta
2024-05-25 06:56:08 -07:00
Alex Bosworth
c44018dc42
version: bump version to v0.28.2-beta
2024-05-24 13:34:58 -07:00
András Bánki-Horváth
563e7be6ae
Merge pull request #754 from bhandras/sweepbatcher-empty-batch-fix
...
sweepbatcher: do not fail on restoring empty batches
2024-05-24 19:04:48 +02:00
Andras Banki-Horvath
14de8f1f5d
sweepbatcher: test that empty batches won't prevent startup
2024-05-24 18:44:05 +02:00
Andras Banki-Horvath
e5ade6a0b1
sweepbatcher: close the quit channel when the batcher is shutting down
2024-05-24 18:44:05 +02:00
Andras Banki-Horvath
c01e8014e1
sweepbatcher: do not fail on restoring empty batches
...
Previously storing an empty batch would make the batcher fail to start
as spinning up a restored batch assumes that there's a primary sweep
added already. As there's no point in spinning up such batch we can just
skip over it.
Furthermore we'll ensure that we won't try to ever publish an empty
batch to avoid setting the fee rate too early.
2024-05-24 18:44:04 +02:00
Andras Banki-Horvath
939c9b4ccf
loopdb+sweepbatcher: add the DropBatch call
2024-05-24 18:44:04 +02:00
Slyghtning
38f0e3a1f5
Merge pull request #753 from hieblmi/static-addr-protocol-version
...
staticaddr: protocol version package
2024-05-23 17:29:39 +02:00
András Bánki-Horváth
e30afba364
Merge pull request #743 from bhandras/loop-out-timeout
...
loopout: configurable payment timeout for off-chain payments
2024-05-23 17:19:54 +02:00
Andras Banki-Horvath
01c017d913
cli: add payment_timeout option to the CLI as well
2024-05-23 17:17:21 +02:00
Andras Banki-Horvath
0d0af5bf24
loopout: use the request defined payment timeout
2024-05-23 17:17:21 +02:00
Andras Banki-Horvath
4749c029bb
loopdb: add migraton and DB code to handle payment timeout
2024-05-23 17:17:21 +02:00
Andras Banki-Horvath
461ceeeb28
looprpc: add payment_timeout to the LoopOutRequest
2024-05-23 17:17:21 +02:00
András Bánki-Horváth
f26a00dd98
Merge pull request #751 from bhandras/negative-fees-fixup
...
loopout: fix negative reported fees
2024-05-23 16:50:52 +02:00
Andras Banki-Horvath
56902352cd
loopout: fix negative reported fees
2024-05-23 16:48:05 +02:00
Slyghtning
314feb9760
staticaddr: protocol version package
2024-05-23 15:12:18 +02:00
András Bánki-Horváth
edbbc3f02f
Merge pull request #752 from bhandras/lnd-18
2024-05-23 10:53:21 +02:00
Andras Banki-Horvath
1ca2542a30
build: bump lnd to v0.18.0-beta.rc3
2024-05-23 10:13:22 +02:00
Andras Banki-Horvath
3b35ddba95
github: bump go version
2024-05-23 10:13:21 +02:00
András Bánki-Horváth
2a3c70fa62
Merge pull request #748 from bhandras/regtest-fixup
...
regtest: fix loopserver address
2024-05-21 10:06:12 +02:00
Andras Banki-Horvath
7f40042424
regtest: fix loopserver address
2024-05-20 10:11:04 +02:00
András Bánki-Horváth
3843c3906d
Merge pull request #741 from bhandras/fsm-observer-fixup
...
fsm: add WaitForStateAsync to the cached observer
2024-05-08 15:06:53 +02:00
Andras Banki-Horvath
811e9dff99
fsm: add WaitForStateAsync to the cached observer
...
By adding WaitForStateAsync to the observer we can always observe state
changes in an atomic way without relying on the observer's internal
cache.
2024-05-08 15:06:39 +02:00
Slyghtning
7a8c052e8c
Merge pull request #736 from hieblmi/daemon-chore
...
daemon: fix wrapped errors and typos
2024-05-03 09:14:02 +02:00
Slyghtning
636f8b611b
daemon: fix wrapped errors and typos
2024-05-01 07:55:01 +02:00
András Bánki-Horváth
e5dd7add8a
Merge pull request #738 from lightninglabs/sweep-logging
...
sweepbatcher: add more debug logging
2024-04-30 22:07:58 +02:00
Andras Banki-Horvath
75d7641d74
sweepbatcher: add more debug logging
2024-04-30 22:00:43 +02:00
András Bánki-Horváth
13e8c29520
Merge pull request #730 from starius/s-lsat-l402
...
multi: replace occurrences of "LSAT" to "L402"
2024-04-29 15:00:07 +02:00
Boris Nagaev
5a1f79557d
loopd: re-add GetLsatTokens method in gRPC
...
This is needed not to break existing client binaries, e.g. `loop listauth`,
Terminal Web, RTL.
The API should be removed in a couple of releases. For now, GetLsatTokens
just prints a warning message about the API being deprecated and that the
client binary should be updated, and calls GetL402Tokens API, as a wrapper.
Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
but this does not affect binary encoding, so type L402Token can be used
(as part of TokensResponse) without breaking backward compatibility.
Updated release_notes.md.
See https://github.com/lightninglabs/loop/pull/730#discussion_r1579251294
2024-04-29 09:39:28 -03:00
Boris Nagaev
14dc8e165d
looprpc: additional_bindings for /v1/lsat/tokens
...
Provide backward compatibility for clients using this API endpoint.
2024-04-24 18:42:33 -03:00
Boris Nagaev
7bb04ae6ac
loopd: recorgnize maxlsatcost and maxlsatfee flags
...
The flags were re-added in hidden mode so that users who specified them
could start the daemon after upgrading. If a flag is used, a deprecation
warning is printed.
Updated release_notes.md.
2024-04-24 14:18:01 -03:00
Boris Nagaev
0e7927ac96
multi: replace LSAT with L402
...
git mv ./cmd/loop/lsat.go ./cmd/loop/l402.go
sed 's@lsat@l402@g' -i `git grep -l lsat`
sed 's@Lsat@L402@g' -i `git grep -l Lsat`
sed 's@LSAT@L402@g' -i `git grep -l LSAT`
make rpc
Updated release_notes.md.
2024-04-24 13:28:28 -03:00
Boris Nagaev
bfc3f44aa1
update aperture to include lsat to l402 renaming
...
Fix the build:
go mod tidy
sed 's@\<lsat\>@l402@g' -i `git grep -l -w aperture/lsat`
make rpc
2024-04-24 13:28:04 -03:00
Boris Nagaev
b99cde172a
go: bump protobuf to v1.33.0-hex-display
2024-04-24 13:23:50 -03:00
Boris Nagaev
368432ebb4
looprpc,swapserverrpc: update Go image to 1.21.9-bookworm
...
This is needed to update protobuf. Version 1.33 breaks in Go 1.16 with
the following error: "//go:build comment without // +build comment".
Distribution was updated from buster (10) to bookworm (12).
protoc was updated from v3.6.1 to v3.21.12.
2024-04-24 13:21:37 -03:00
Boris Nagaev
e30cb5f2a8
multi: apply make fmt
2024-04-23 15:18:15 -03:00
Konstantin Nick
cd5dc903f9
Merge pull request #731 from lightninglabs/dependabot/go_modules/golang.org/x/net-0.23.0
...
build(deps): bump golang.org/x/net from 0.21.0 to 0.23.0
2024-04-22 14:08:23 +02:00
dependabot[bot]
b363118fed
build(deps): bump golang.org/x/net from 0.21.0 to 0.23.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:18:31 +00:00
Alex Bosworth
e08d9da644
Merge pull request #728 from lightninglabs/alexbosworth-patch-2
...
version: bump version to v0.28.1-beta
2024-04-16 06:16:59 -07:00
Alex Bosworth
99e0c04f5f
version: bump version to v0.28.1-beta
2024-04-15 13:27:46 -07:00