positiveblue
d2cd76a65e
sidecar: clean old shims for orders in current batch
2022-02-24 13:45:41 -08:00
Jordi Montes
5cca100b03
Merge pull request #340 from lightninglabs/fix-issue-338
...
sidecar: Init mailbox after server restarts
2022-02-18 01:06:15 -08:00
positiveblue
ac3c44a966
sidecar: Init mailbox after server restarts
...
Whenever we are are unable to receive a sidecar packet in an auto
sidecar negotiator try to init its mailbox. This will allow us to
continue reading/writting in the mailbox in cases where the server
went down and came back.
2022-02-17 12:53:46 -08:00
Oliver Gugger
df3b819e5c
Merge pull request #335 from lightninglabs/acc-recovery
...
Client side account recovery
2022-01-28 12:29:45 +01:00
Oliver Gugger
d962f6624a
account: fix log message
2022-01-28 12:24:36 +01:00
positiveblue
18b9efdff6
account: add tests for account recovery
2022-01-27 23:37:29 -08:00
positiveblue
7b0ddfe6cc
cmd/account: add flags to recovery process
2022-01-27 23:37:29 -08:00
positiveblue
ac0a554d7d
account: implement client side recovery process
2022-01-27 23:37:24 -08:00
positiveblue
baf2042a0b
account: client side recovery skeleton
2022-01-27 23:01:37 -08:00
positiveblue
7ecc726b4e
poolscript: add RecoveryHelper
...
RecoveryHelper is a type that helps speed up account recovery by
caching the tweaked trader and auctioneer keys for faster script
lookups.
2022-01-27 16:34:59 -08:00
positiveblue
7f849b3248
account/recovery: add struct for auctioneer data
...
Add a new type (`auctioneerData`) containing the auctioneer data for
each evironment (mainnet, testnet and regtest).
2022-01-26 01:17:31 -08:00
positiveblue
da2108cc82
account: add target to GenerateRecoveryKeys
...
The default value for server assisted is 500 but the user is able to
give us a hint of how many accounts we are looking for.
2022-01-26 01:17:31 -08:00
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