Commit graph

1096 commits

Author SHA1 Message Date
positiveblue
7669c7ffde
multi: parse and propagate auction type field for orders 2022-10-18 06:51:55 -07:00
positiveblue
d1b9a63da5
order: add auction type field to order struct/db 2022-10-18 06:44:01 -07:00
positiveblue
b2a5c14e0c
rpc: add auction type field to orders 2022-10-18 06:44:01 -07:00
Jordi Montes
9280be1cfe
Merge pull request #385 from lightninglabs/zero_conf
feature: add support for unannounced and zero conf channels
2022-10-18 06:23:03 -07:00
positiveblue
9ce8d4b955
cmd: add --public flag for orders that can be shared 2022-10-18 04:34:22 -07:00
positiveblue
a6b7196c1e
multi: parse and propagate IsPublic field for orders 2022-10-18 04:34:22 -07:00
positiveblue
05ff9e2635
order: add IsPublic field 2022-10-18 04:34:22 -07:00
positiveblue
091d8f5735
rpc: add is_public field to 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
40b2cfdd07
sidecar: new version for unannounced/zero conf channels
A sidecar ticket will always use the minimum version needed to encode
all the relavant information for that offer. In that way the tickets
from a provider with a newer version can be redeemed by recipeients
using older versions as long as the ticket does not encode new
functionalities.
2022-10-18 04:34:22 -07:00
positiveblue
f82b5759d8
poolrpc: add unannounced/zeroconf field to sidecars 2022-10-18 04:34:21 -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
71faeda417
channel acceptor: check channel announcebility/confirmations 2022-10-18 04:34:21 -07:00
positiveblue
cdb92e11f0
multi: new batch version for unannounced channel and zero conf support 2022-10-18 04:34:21 -07:00
positiveblue
d2186c2fe7
cmd/pool: add channel announcement/confirmation constraints flags
bonus: fix style for some +80 column lines
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
positiveblue
241f295957
order: add channel announcement and zero conf constraint fields
Includes the definition of matchable orders based on the new constraint
fields.
2022-10-18 04:34:20 -07:00
positiveblue
b4b21da1c7
rpc: add new fields for unannounced and zero conf channels
For unannounced channels:
Bids can decide if they are interested in announced or unannounced
channels (exclusive or).

Asks can decide in what market they want to provide liquidity:
announced channels, unannounced channels or both.

For zero conf channels:
New constraints based on how many blocks are needed before considering a
channel "confirmed".
2022-10-18 04:34:20 -07:00
positiveblue
d30a0b213c
multi: update lnd and lndclient v0.15.1-beta 2022-10-18 04:34:20 -07:00
Oliver Gugger
ae5668bfba
Merge pull request #394 from jbrill/missing-account-state-during-marshall
rpcserver: handle 'StateExpiredPendingUpdate' case for account state
2022-10-14 11:24:46 +02:00
Jason Brill
890c99b83a
rpc: handle 'StateExpiredPendingUpdate' case for account state 2022-10-13 15:36:36 -04:00
Robyn Ffrancon
da88f020c5
Merge pull request #393 from ffranr/taproot-add-check-for-annex-in-taproot-expiry-script-spend-path
taproot: ensure check for expiry script spend correctly handles annex
2022-10-07 14:52:25 +01:00
Robyn
340ff1ab32
taproot: ensure check for expiry script spend correctly handles annex 2022-10-07 14:39:25 +01:00
Oliver Gugger
409d7abf1e
Merge pull request #391 from guggero/profile
multi: make profile IP configurable
2022-09-23 11:38:56 +02:00
Oliver Gugger
819670fa82
multi: make profile IP configurable 2022-09-23 09:44:46 +02:00
Oliver Gugger
a12246c47a
Merge pull request #375 from lightninglabs/trader-account-taproot
Upgrade trader accounts to Taproot/MuSig2
2022-09-12 17:33:39 +02:00
Oliver Gugger
a1dab842d6
server: bump required lnd version for Taproot to v0.15.1-beta 2022-09-12 17:20:12 +02:00
positiveblue
28e004ba02
cmd: parse and print account version field 2022-09-12 17:20:12 +02:00
positiveblue
037671287e
account/manager: fix np2wkh deposits
The `.UnsignedTx` of a psbt does not include the related
SignatureScripts. Because SignatureScripts are not part of the signed
data, the partial signature for a psbt that does not include them is a
valid signature. However, the `TxHash` will change between a tx that has
SignatureScripts set and one that does not.

This behaviour led the auctioneer and the client to record the wrong
outpoint when using np2wkh.
2022-09-12 17:20:12 +02: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
221ea0bcbe
order: allow account version upgrade during batch 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
312e206dac
multi: implement taproot accounts 2022-09-12 17:20:11 +02:00
Oliver Gugger
355e0577f8
account: refactor account manager tests 2022-09-12 17:20:11 +02:00
Oliver Gugger
bec62efa71
account: refactor away spend package
With this commit we streamline the signing code somewhat to make it
easier to understand. With the new flow the spendPkg struct is no longer
needed as we directly pass back the (partially) signed TX.
2022-09-12 17:20:11 +02:00
Oliver Gugger
b6013e34e6
account: use spend witness type everywhere 2022-09-12 17:20:11 +02:00
Oliver Gugger
aa5fdf80b1
cmd/pool: add account version to CLI 2022-09-12 17:20:10 +02:00
Oliver Gugger
a63985d614
multi: add account version to RPCs and manager 2022-09-12 17:20:10 +02:00
Oliver Gugger
69d3ad6d44
poolscript+account+log: add new Taproot scripts 2022-09-12 17:20:10 +02:00
Oliver Gugger
7bc48a7a7d
account+clientdb: add version to account 2022-09-12 17:20:10 +02:00
Oliver Gugger
1ef87fe37b
auctioneerrpc: add version and nonces for taproot signing 2022-09-12 17:20:10 +02:00
Jordi Montes
f5b214fcee
Merge pull request #387 from kaloudis/patch-1
poolrpc/gen_protos.sh: remove js build tag
2022-09-09 05:18:35 -07:00
Evan Kaloudis
ba000d9b82
poolrpc/gen_protos.sh: remove js build tag 2022-09-08 10:37:54 -04:00
Oliver Gugger
b283ca9d13
Merge pull request #384 from guggero/go-1.18
tools: update Golang to 1.18, add fuzz tests
2022-08-05 10:02:53 +02:00
positiveblue
16b80f269b
mock: stop sharing the gocache with the docker
The docker image was sharing the cache dir with the host and that was
causing some permission problems in our ci (github actions).
2022-08-04 22:36:43 -07:00
Oliver Gugger
e1b141d849
GitHub: remove docker image cache, set up golang
The docker build image cache seems to cause more problems and take
longer to load than it would take to build the image from scratch, so we
remove it.
Instead we make sure that we use the latest version of the 1.18 Golang
branch.
2022-08-04 14:43:08 +02:00