Commit graph

983 commits

Author SHA1 Message Date
Oliver Gugger
e8a0127c7d
rpcserver: marshall channel type in order list 2022-03-28 15:46:34 +02:00
Oliver Gugger
a85a4ae60e
Merge pull request #348 from lightninglabs/btcec-v2-btcutil-bump
multi: bump btcec/v2 and btcutil to new versions
2022-03-28 15:29:42 +02:00
positiveblue
6027ccd3d6
multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
Oliver Gugger
10d7972373
Merge pull request #347 from lightninglabs/fix-346
rpcserver: report lease expiries correctly
2022-03-15 10:31:05 +01:00
positiveblue
488ebd808a rpcserver: report lease expiries correctly
Thaw height is now absoulte (used to be relative). We could check the
channel type (for type SCRIPT_ENFORCED_LEASE is always absolute) but
we can simply follow the "500,000" value rule.
2022-03-14 23:08:23 -07:00
Oliver Gugger
a35ceca2ca
Merge pull request #341 from lightninglabs/fix-sidecar-message-handlers
Fix sidecar message handlers
2022-03-07 19:24:51 +01:00
positiveblue
40447c643a version: bump version to v0.5.5-alpha 2022-03-07 10:16:59 -08:00
positiveblue
cb86b2c0ed sidecar: sendRejectBatch populates the right error 2022-03-04 12:27:36 -08:00
positiveblue
af0ceb3a83 sidecar: remove shims after rejecting a batch 2022-03-03 21:50:12 -08:00
Jordi Montes
8bdd818a87
Merge pull request #344 from lightninglabs/fix-cli-messages
cmd: improve InitAccount cli message
2022-03-03 11:21:26 -08:00
positiveblue
51a64e8fc1 cmd: improve InitAccount cli message
Our message was really confusing. If InitAccount was used with
the `sat_per_vbyte` option we were printing the default `conf_target`
that was not used at all.
2022-03-02 13:36:30 -08:00
Jordi Montes
1ec88499a9
Merge pull request #342 from lightninglabs/clean-old-order-shims
sidecar: clean old shims for orders in current batch
2022-02-25 14:59:42 -08:00
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