Commit graph

959 commits

Author SHA1 Message Date
positiveblue
c8a1aa9311
cmd/pool: user server assisted recovery by default 2022-01-26 01:17:30 -08:00
positiveblue
f74b90dd2f
rpcserver: split server vs client recovery process 2022-01-26 01:17:30 -08:00
positiveblue
34d03652ec
poolrpc: add fields to Recovery Requests 2022-01-26 01:17:28 -08:00
Oliver Gugger
bc8537add9
Merge pull request #336 from ellemouton/macaroonService
multi: use lndclient MacaroonService
2022-01-18 18:40:41 +01:00
Elle Mouton
c4d43e708d server: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is
now a more appropriate name.
2022-01-17 16:04:03 +02:00
Elle Mouton
599f26528c multi: use lndclient MacaroonService
Since the code for creating and using a macaroon service is the same for
multiple projects (pool, loop, litd etc), the code has been unified in
lndclient. So this commit removes the macaroon service code and instead
uses the lndclient code.
2022-01-17 16:04:03 +02:00
Olaoluwa Osuntokun
525fe156d2
Merge pull request #337 from lightninglabs/lnd-version-subserver
rpcserver: fix nil version in subserver mode
2022-01-14 12:28:58 -08:00
Oliver Gugger
b1b9bd989b
rpcserver: fix nil version in subserver mode
A new variable for the connected lnd node's version was added but was
not given a value when run in subserver mode within LiT.
This commit uses the lnd service's cached version directly and removes
the uninitialized variable.
2022-01-14 14:12:08 +01:00
Olaoluwa Osuntokun
2df6d90772
Merge pull request #332 from lightninglabs/pool-0.5.4
Pool 0.5.4
2022-01-05 14:40:38 -08:00
Oliver Gugger
500579ac6b
version: bump version to v0.5.4-alpha 2022-01-03 16:57:04 +01:00
Oliver Gugger
23d9b8da2b
order: only extend re-created accounts 2022-01-03 16:57:02 +01:00
Oliver Gugger
e9d65b20cf
order: fix linter complaint 2022-01-03 16:57:01 +01:00
Oliver Gugger
7c2268fcbb
Merge pull request #330 from lightninglabs/default-script-chan-type
multi: remove static default channel types instead select them based on lnd's verison
2021-12-23 11:56:45 +01:00
Oliver Gugger
9bc004724d
Merge pull request #331 from lightninglabs/conditional-batch-version
Conditional batch version for itests
2021-12-23 09:47:36 +01:00
Oliver Gugger
cd3b6b65bb
auctioneer+order: rename CurrentBatchVersion->LatestBatchVersion
To make sure the CurrentBatchVersion isn't used anywhere as the default
version anymore by accident, we explicitly rename it.
2021-12-22 09:47:45 +01:00
Oliver Gugger
e52b1ff5a6
rpcserver+order: make batch version configurable 2021-12-22 09:47:45 +01:00
Oliver Gugger
1f50c7839a
server+auctioneer: make batch version configurable 2021-12-22 09:47:44 +01:00
Oliver Gugger
65045066af
rpcserver+order: refactor ErrVersionMismatch into struct 2021-12-22 09:47:40 +01:00
Oliver Gugger
21e761d65e
config: add DebugConfig struct 2021-12-21 14:29:37 +01:00
Olaoluwa Osuntokun
b413ace060
rpc: default to the script enforced chan type if lnd supports it
In this commit, we use the prior commits to allow the server to
dynamically select a channel type based on the lnd version.
2021-12-17 18:02:51 -08:00
Olaoluwa Osuntokun
c83f8a56e4
order: add functional options to allow caller to pick a default chantype
In this commit, we add a new set of functional options that will allow
the caller to pick an default channel type w/o forcing the main parse
function to be aware of this logic.
2021-12-17 18:02:46 -08:00
Olaoluwa Osuntokun
eecb470538
server: store the version of the connected lnd node
We'll use this in a follow up commit to decide what channel type we want
to use.
2021-12-17 18:02:43 -08:00
Olaoluwa Osuntokun
67fb1b4b97
cmd/pool: stop setting a default channel type on the CLI
In this commit, we move to stop setting a default channel type on the
CLI. Instead, we want this to be selected at runtime by the daemon based
on what the lnd node can offer.
2021-12-17 18:02:40 -08:00
Olaoluwa Osuntokun
8c65603fbf
Merge pull request #329 from lightninglabs/enable-account-autorenew
order: set `ExtendAccount` as default batch version
2021-12-16 16:04:33 -08:00
positiveblue
2f971db8cc
order: set ExtendedAccount as default batch version 2021-12-16 13:15:41 -08:00
Oliver Gugger
dccbfea39d
Merge pull request #328 from guggero/docs-update
README: fix inprecise wording for execution fee
2021-12-16 16:34:05 +01:00
Oliver Gugger
cdce855ce8
README: fix inprecise wording for execution fee
Fixes #205.
2021-12-16 10:42:47 +01:00
Jordi Montes
e87226da22
Merge pull request #326 from lightninglabs/add-rpc-test
Add rpcserver test for `RenewAccount` endpoint
2021-12-15 04:44:40 +00:00
positiveblue
ce0ba9a569
rpcserver: add tests for RenewAccount endpoint 2021-12-14 20:40:02 -08:00
positiveblue
1589efe1ea
rpcserver: add Marshaler interface
The Marshaler interface is used to transform internal types to
decorated RPC ones.

It decouples that functionality form the rpcServer so it is easier to
test exhaustively.
2021-12-14 20:40:02 -08:00
positiveblue
65157959b0
account: generate mocks for account/interfaces.go 2021-12-14 20:40:02 -08:00
positiveblue
29135cf864
account: add the account Manager interface 2021-12-14 20:40:02 -08:00
positiveblue
5d93deab0f
order: generate mocks for order/interfaces.go
The `mockgen` tool seems to have a bug and it is not able to parse a
valid go file. I had to change the `[sha256.Size]byte` to `[size]byte`
and define `hashSize` in the order package in the same way it is defined in
the sha256 one.
2021-12-14 20:39:55 -08:00
Jordi Montes
20f0c7beb9
Merge pull request #325 from lightninglabs/update-docs
docs: update documentation
2021-12-15 04:33:15 +00:00
positiveblue
0723aad6d4
docs: update documentation 2021-12-14 20:28:14 -08:00
positiveblue
8365bfd5a8
order: add the order Manager interface 2021-12-14 20:12:40 -08:00
Oliver Gugger
6884748a51
Merge pull request #316 from lightninglabs/watcher-interface-v3
refactor `account/watcher` and add mocks/tests
2021-12-08 16:13:33 +01:00
positiveblue
1856f798fc
account/watcher: add ExpiryWatcher tests 2021-12-07 12:22:38 -08:00
positiveblue
17e77c380f
account/watcher: add controller tests 2021-12-07 12:22:37 -08:00
positiveblue
739498543a
mocks: add account/watcher mocks 2021-12-07 12:22:37 -08:00
positiveblue
7b53791997
account/watcher: delete expiryReq 2021-12-07 12:22:37 -08:00
positiveblue
abd603d765
account/watcher: add ExpiryWatcher and EventHandler interfaces
Split watcher logic in three pices:
    - Controller: API + message dispatching
    - ExpiryWatcher: handle account expirations
    - EventHandler: implementation for each handler
2021-12-07 12:22:27 -08:00
positiveblue
a34790e494
account/watcher: add Controller interface
Use the new watcher interface in the account manager instead of of a specific
struct type.
2021-12-07 11:58:40 -08:00
Oliver Gugger
902d4f6cfe
Merge pull request #321 from lightninglabs/pool-v0.5.3
Fix auctioneerrpc tag, prepare for releasing v0.5.3-alpha
2021-12-07 20:13:03 +01:00
Oliver Gugger
b3e9ba69c1
docs: bump lnd minimum version 2021-12-07 20:08:56 +01:00
Oliver Gugger
ed8dce2d45
version: bump version to v0.5.3-alpha 2021-12-07 19:59:41 +01:00
Oliver Gugger
c0c885a974
mod: bump lnd version to v0.14.1-beta 2021-12-07 19:59:27 +01:00
Oliver Gugger
51e50f86b0
mod: bump version of auctioneerrpc submodule 2021-12-07 19:57:09 +01:00
Oliver Gugger
c52b59133d
Merge pull request #314 from lightninglabs/auto-renew-batch
Add support for `ExtendAccountBatchVersion`
2021-12-03 11:03:32 +01:00
positiveblue
9e36c749b6
poolrpc: add auto_renew_extension_blocks to NextBatchInfoResponse 2021-12-02 22:55:21 -08:00