Commit graph

325 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
fc2bec5cab
orders: deny wumbo orders if lnd node isn't wumbo enabled
Fixes #27.
2020-09-08 16:37:29 -07:00
Olaoluwa Osuntokun
37d4468831
Merge pull request #63 from wpaulino/account-recovery-latest-tx
auctioneer: use StateInitiated for pending/open recovered accounts
2020-09-08 16:22:32 -07:00
Olaoluwa Osuntokun
2b75de5e69
Merge pull request #65 from Roasbeef/order-addr-fix
rpc+orders: don't shutdown on batch parse failure, allow no addrs for asks
2020-09-04 16:02:43 -07:00
Olaoluwa Osuntokun
4f6dc814db
rpc: return reject message if batch parsing fails
Before this commit, if parsing failed, then the entire daemon would
actually shutdown.
2020-09-04 15:38:27 -07:00
Olaoluwa Osuntokun
3756d31a47
order: only require node addr for ask orders 2020-09-04 15:38:19 -07:00
Wilmer Paulino
bf21305205
auctioneer: use StateInitiated for pending/open recovered accounts
Using this state allows the trader to locate the transaction locally for
recovered accounts in a pending open or open state. There is no risk of
double sending funds in this case, as that's prevented through the
recovery branch within the account manager.
2020-09-04 11:36:27 -07:00
Wilmer Paulino
203627643b
clientdb: avoid serialization of latest tx in StateCanceledAfterRecovery
The latest transaction is also not known here, so we shouldn't serialize
it.
2020-09-04 11:36:25 -07:00
Wilmer Paulino
7c8225031e
Merge pull request #62 from halseth/cli-reserved-valuue
cli: print worst case chain fee and batch fee rate
2020-09-03 16:50:57 -07:00
Johan T. Halseth
7e55458ff6
clmrpc: add ReservedValue to listorders 2020-09-03 15:22:50 +02:00
Johan T. Halseth
5fd1e7b7b3
cli: print worst case chain fee and batch fee rate 2020-09-03 15:02:41 +02:00
Oliver Gugger
1c11ad9b3d
Merge pull request #61 from lightninglabs/grub-lnd-0.11
Prepare to be integrated into LiT
2020-09-03 10:16:17 +02:00
Oliver Gugger
beb58ae58a
mod: bump aperture, lnd and lndclient 2020-09-03 09:57:42 +02:00
Oliver Gugger
748a16afb9
log: change AGOD to LLMD 2020-09-03 09:57:41 +02:00
Oliver Gugger
e6d168e3ee
llm: add tlsCertPath and macaroonPath flags 2020-09-03 09:57:40 +02:00
Oliver Gugger
eb173a58a2
config: remove short flags to avoid collision 2020-09-03 09:57:40 +02:00
Oliver Gugger
8b460f6506
server: embed gRPC server
To make it possible to run the whole daemon as an external subserver in
LiT, we need to embed the gRPC server so we can register it to lnd.
2020-09-03 09:57:39 +02:00
Oliver Gugger
4953d69d9b
server: add StartAsSubserver 2020-09-03 09:57:38 +02:00
Oliver Gugger
4f6b6f01a5
server: add started flag 2020-09-03 09:57:38 +02:00
Oliver Gugger
6a8f4c74fd
server: move client startup into method 2020-09-03 09:57:37 +02:00
Oliver Gugger
5f1be840e4
server: remove cfg helper variable 2020-09-03 09:57:37 +02:00
Oliver Gugger
8605008ec1
server+run: move startup logic into Start method 2020-09-03 09:57:36 +02:00
Oliver Gugger
139be1584d
server+llmd: extract setup code into Run function 2020-09-03 09:57:36 +02:00
Oliver Gugger
9f36c3937c
config+llmd: turn DefaultConfig into a function
To make sure the default configuration cannot be changed by multiple
instances of the daemon we return a new copy for each caller.
2020-09-03 09:56:10 +02:00
Johan T. Halseth
77625c44c4
Merge pull request #56 from wpaulino/account-bump-fee
account+rpc: allow fee bumping for unconfirmed account transactions
2020-09-03 09:41:58 +02:00
Wilmer Paulino
00443bafca
llm: add bumpfee subcommand for accounts 2020-09-02 12:30:08 -07:00
Wilmer Paulino
4c83a6663c
rpc: add BumpAccountFee RPC 2020-09-02 12:30:07 -07:00
Wilmer Paulino
d60a44c73d
account: implement fee bump for transactions of accounts in pending states 2020-09-02 12:30:06 -07:00
Wilmer Paulino
f71adf7b67
multi: re-purpose account close tx field to latest tx 2020-09-02 12:10:23 -07:00
Olaoluwa Osuntokun
d118a0f88d
build: bump version to v0.1.1-alpha 2020-08-31 16:12:16 -07:00
Olaoluwa Osuntokun
eb923d5c9a
Merge pull request #60 from Roasbeef/order-query-optimization
llmd: on start up only query orders that're in a non-terminal state
2020-08-28 16:39:39 -07:00
Olaoluwa Osuntokun
2cfcad1956
llmd: on start up only query orders that're in a non-terminal state
This lets us avoid querying the server for all orders on start up each
time.
2020-08-28 16:12:52 -07:00
Oliver Gugger
280d0e041d
Merge pull request #59 from wpaulino/close-account-panic-fix
rpc: check nil funds destination in CloseAccountRequest
2020-08-28 12:31:05 +02:00
Wilmer Paulino
c1ebc0a5f3
rpc: check nil funds destination in CloseAccountRequest
This addresses a panic when the funds destination field of the request
is not populated.
2020-08-27 15:17:04 -07:00
Oliver Gugger
777abd5518
Merge pull request #50 from guggero/wait-for-node-connection
fundingmgr: wait for peer connections to be established before accepting a batch
2020-08-25 10:13:59 +02:00
Oliver Gugger
814ba0d82d
fundingmgr: wait for outbound connections before accepting batch
As a bidder it's our job to open the p2p connection to the asker. We
want to make sure the connection is open before accepting a batch as
otherwise the asker won't be able to connect.
2020-08-25 10:03:09 +02:00
Oliver Gugger
2c3b85dba2
fundingmgr+rpcserver: rename timeout, use explicit type
We are going to use the same timeout for multiple different things and
rename it to be more generic. At the same time we use route.Vertex
instead of [33]byte to make things easier to read.
2020-08-25 09:57:54 +02:00
Oliver Gugger
d6d2396c77
fundingmgr: rename base client, add peer RPCs
As a preparation to be able to query the list of connected peers, we add
that RPC methods to the interface. This changes the purpose of the
interface and we rename it to be more generic.
2020-08-25 09:57:54 +02:00
Olaoluwa Osuntokun
b6a9637b3e
Merge pull request #43 from guggero/new-nodes-only
Partial Batch Reject [1/2]: Reject batch partially on funding error or duplicate nodes
2020-08-24 18:41:51 -07:00
Olaoluwa Osuntokun
852870e4e9
Merge pull request #54 from wpaulino/close-account-fees
account: introduce fee expressions for account closure
2020-08-24 18:40:16 -07:00
Wilmer Paulino
aa3465027c
account: set account value to 0 upon closure 2020-08-24 13:33:18 -07:00
Wilmer Paulino
31d290d660
llm: add fee related flags for close account cmd 2020-08-24 13:33:17 -07:00
Wilmer Paulino
dba558578a
rpc: add funds destination oneof for CloseAccount
This is essentially the RPC variant of the fee expression found when
closing accounts.
2020-08-24 13:33:17 -07:00
Wilmer Paulino
a532b04246
account: introduce fee expressions for account closure
We introduce two distinct ways traders can express their closing
transaction fees: a single address/output script along with a fee rate,
or a list of outputs (script and value) which implicitly expresses the
transaction fees. This provides traders with greater coin control
flexibility, allowing them to directly send their account funds to their
desired destinations efficiently without needing multiple transactions.
2020-08-24 13:33:16 -07:00
Oliver Gugger
f0766e4514
clmrpc+rpcserver: remove nonces from OrderMatchAccept 2020-08-24 17:47:21 +02:00
Oliver Gugger
bc115ce1f9
fundingmgr: make testable and add unit tests 2020-08-24 17:47:21 +02:00
Oliver Gugger
f11d35b560
log+fundingmgr: add specific logger to funding mgr 2020-08-24 17:47:21 +02:00
Oliver Gugger
68c2f9ae41
rpcserver+fundingmgr: reject matches with existing peers
If a trader wishes to only get channels from new peers, we check each
match against all nodes we already have open or pending channels with.
We don't look at pending closing channels in case a trader wants to buy
new channels as soon as one closed out.
2020-08-24 17:47:20 +02:00
Oliver Gugger
496af7173e
multi: add NewNodesOnly flag
Add a new flag that can specify that a trader only wants channels from
nodes it doesn't already have a channel with.
2020-08-24 17:47:20 +02:00
Oliver Gugger
02bd5a7ef8
order+rpcserver: send correct RPC reject message 2020-08-24 17:47:20 +02:00
Oliver Gugger
4c4c5a2e43
fundingmgr: return matchRejectErr on funding failure 2020-08-24 17:47:12 +02:00