Commit graph

231 commits

Author SHA1 Message Date
djkazic
84e9b65670
auctioneer: reconnect on EOF instead of silently leaving the subscribe stream dead 2026-05-20 12:46:58 -04:00
Andras Banki-Horvath
948dbca84e
multi: bump aperture and rename L402 to LSAT where possible 2024-05-23 14:07:48 +02:00
Oliver Gugger
51358ef7a1
server+rpcserver: restrict use of taproot chans 2023-10-25 10:04:23 +02:00
Oliver Gugger
52cdb3d5f9
multi: add simple taproot channel type to order 2023-10-25 10:04:23 +02:00
Oliver Gugger
4e12074f0a
rpcserver: check min units match 2023-10-03 19:38:25 +02:00
Oliver Gugger
1b1d0b69e0
multi: add new account version 2023-03-08 17:42:06 +01:00
Oliver Gugger
34af866ce9
multi: fix linter issues 2023-02-23 11:26:42 +01:00
positiveblue
f06de0a42a
rpc: populate allowed/not allowed node ids when listing orders 2023-01-06 08:31:19 -08:00
positiveblue
5a5207dc01
rpcserver: format rpcLog error
We were using `Error(<string>, <err>)` instead of `Errorf(<string>,
<err>)`. The error was appended at the end of the message instead of
replacing the `%v` tag in the message.
2023-01-06 02:26:32 -08:00
Elle Mouton
7a9c7be82b
multi: configurable RequestShutdown and ShutdownChannel funcs 2022-12-02 17:48:37 +02:00
Robyn
cd632058b0
account: expose historical account modification fees via RPC
This commit adds a new RPC endpoint which returns a per-account list of account modification fees.
2022-11-15 12:54:28 +00:00
positiveblue
1b550cd78e
rpcserver: populate auction_type in the ListOrders endpoint 2022-11-04 10:24:44 -07:00
positiveblue
7669c7ffde
multi: parse and propagate auction type field for orders 2022-10-18 06:51:55 -07:00
positiveblue
a6b7196c1e
multi: parse and propagate IsPublic field for orders 2022-10-18 04:34:22 -07:00
positiveblue
6ff4a1de34
multi: parse and propagate unannounced/zero conf fields for sidecars 2022-10-18 04:34:22 -07:00
positiveblue
244f6f366b
rpcserver: add checks to validate submited orders
Check that we cannot submit inconsistent orders:
- Orders that may result in zero conf channels without supporting them.
2022-10-18 04:34:21 -07:00
positiveblue
8d54713cef
order: bump latest batch version to ZeroConfChannels 2022-10-18 04:34:21 -07:00
positiveblue
d47efba300
multi: parse and propagate channel announcement/confirmation constraints 2022-10-18 04:34:21 -07:00
Jason Brill
890c99b83a
rpc: handle 'StateExpiredPendingUpdate' case for account state 2022-10-13 15:36:36 -04:00
Oliver Gugger
701b999463
multi: calculate locked value based on account version 2022-09-12 17:20:12 +02:00
Oliver Gugger
d109f913c4
multi: remove global shutdown interceptor
During the integration tests we might want to shut down a trader client
through the admin RPC. If that closes the shutdown channel on a package
global interceptor, that means we can't start another trader client
during that test. We need to make sure we can pass in an interceptor for
each trader instance.
2022-09-12 17:20:12 +02:00
Oliver Gugger
9638c8a24b
order+rpcserver: add MuSig2 batch signing 2022-09-12 17:20:12 +02:00
Oliver Gugger
1e7c00a586
order+rpcserver: use account version in fee estimation 2022-09-12 17:20:11 +02:00
Oliver Gugger
a6c18a9bb1
multi: add new batch version for account auto-upgrade 2022-09-12 17:20:11 +02:00
Oliver Gugger
a63985d614
multi: add account version to RPCs and manager 2022-09-12 17:20:10 +02:00
Oliver Gugger
986d889b74
multi: fix linter issues 2022-08-03 20:33:06 +02:00
Oliver Gugger
433a3c4bcf
rpcserver+server: bump minimum required lnd version to v0.14.3-beta
With lnd 0.15.0 almost out of the door, it is reasonable for us to ask
users to be on the latest 0.14.x version.
We use the walletrpc.SignPsbt method in Pool which was added in 0.14.2.
2022-06-30 15:39:48 +02:00
Oliver Gugger
7571464968
multi: add chain params and lnd version to account manager 2022-06-30 13:46:59 +02:00
Oliver Gugger
bd58d1e036
multi: improve trace logging 2022-06-17 14:51:02 +02:00
Oliver Gugger
1ba717c741
account+rpcserver: bump account key index on recovery
Fixes #372.
This commit fixes the issue that if the lnd node the trader client is
connected to was also restored from seed, it is starting at account key
derivation index 0. So when recovering accounts we need to make sure we
re-derive the right number of keys from the wallet in order to allow
properly creating new accounts with the recovered node.
2022-06-15 13:23:31 +02:00
Oliver Gugger
3508d7b9a4
multi: bump to latest lndclient and lnd versions 2022-06-01 16:16:57 +02:00
positiveblue
ae5df70783
order: populate allowed/not allowed fields 2022-04-22 00:25:18 -07:00
Oliver Gugger
a2722221fa
Merge pull request #354 from guggero/rollback-default-channel-type
rpcserver: roll back #330
2022-04-19 14:02:47 +02:00
positiveblue
777dce5e08
rpcserver: update recoveryPending attribute
The rpcserver cannot have more than one account recovery process running
at once. The server uses a internal attribute (`recoveryPending`) that
is set to true when a new recovery process starts. However, that
attribute was only set to false if the process ended successfully,
leaving the server unable to try more recoveries after a failure.
2022-04-12 15:26:41 -07:00
Oliver Gugger
bf74283ae2
rpcserver: roll back #330
To fix an accidental market segregation for lnd 0.14.x users that didn't
set an explicit channel type in their bid orders, we roll back the
changes from #330.
We can re-enable this default value selection once a large number of ask
orders support the new channel type.
2022-04-11 18:40:09 +02:00
Oliver Gugger
e8a0127c7d
rpcserver: marshall channel type in order list 2022-03-28 15:46:34 +02:00
positiveblue
6027ccd3d6
multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02: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
positiveblue
baf2042a0b
account: client side recovery skeleton 2022-01-27 23:01:37 -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
f74b90dd2f
rpcserver: split server vs client recovery process 2022-01-26 01:17:30 -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
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
e52b1ff5a6
rpcserver+order: make batch version configurable 2021-12-22 09:47:45 +01:00
Oliver Gugger
65045066af
rpcserver+order: refactor ErrVersionMismatch into struct 2021-12-22 09:47:40 +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
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
29135cf864
account: add the account Manager interface 2021-12-14 20:40:02 -08:00
positiveblue
8365bfd5a8
order: add the order Manager interface 2021-12-14 20:12:40 -08:00
positiveblue
9e36c749b6
poolrpc: add auto_renew_extension_blocks to NextBatchInfoResponse 2021-12-02 22:55:21 -08:00