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
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
positiveblue
17e77c380f
account/watcher: add controller tests
2021-12-07 12:22:37 -08:00
positiveblue
739498543a
mocks: add account/watcher mocks
2021-12-07 12:22:37 -08:00
positiveblue
7b53791997
account/watcher: delete expiryReq
2021-12-07 12:22:37 -08:00
positiveblue
abd603d765
account/watcher: add ExpiryWatcher and EventHandler interfaces
...
Split watcher logic in three pices:
- Controller: API + message dispatching
- ExpiryWatcher: handle account expirations
- EventHandler: implementation for each handler
2021-12-07 12:22:27 -08:00
positiveblue
a34790e494
account/watcher: add Controller interface
...
Use the new watcher interface in the account manager instead of of a specific
struct type.
2021-12-07 11:58:40 -08:00
Oliver Gugger
902d4f6cfe
Merge pull request #321 from lightninglabs/pool-v0.5.3
...
Fix auctioneerrpc tag, prepare for releasing v0.5.3-alpha
2021-12-07 20:13:03 +01:00
Oliver Gugger
b3e9ba69c1
docs: bump lnd minimum version
2021-12-07 20:08:56 +01:00
Oliver Gugger
ed8dce2d45
version: bump version to v0.5.3-alpha
2021-12-07 19:59:41 +01:00
Oliver Gugger
c0c885a974
mod: bump lnd version to v0.14.1-beta
2021-12-07 19:59:27 +01:00
Oliver Gugger
51e50f86b0
mod: bump version of auctioneerrpc submodule
2021-12-07 19:57:09 +01:00
Oliver Gugger
c52b59133d
Merge pull request #314 from lightninglabs/auto-renew-batch
...
Add support for `ExtendAccountBatchVersion`
2021-12-03 11:03:32 +01:00
positiveblue
9e36c749b6
poolrpc: add auto_renew_extension_blocks to NextBatchInfoResponse
2021-12-02 22:55:21 -08:00
positiveblue
2e724ad4d6
account: disable renewAccount for StatePendingBatch status
...
If the account is currently participating in a batch
(`StatePendingBatch`) we disable the renewAccount command. After
enabling account autorenew it could be problematic to renew your
account before the batch is confirmed and you account expiry height
gets updated.
2021-12-02 22:54:12 -08:00
positiveblue
cb53898136
auctioneerrpc: add auto_renew_extension_blocks to TermsResponse
2021-12-02 22:53:46 -08:00
Oliver Gugger
94c67dd54d
Merge pull request #319 from guggero/pool-cli-conflict
...
Fix pool CLI short name conflict
2021-12-01 15:20:38 +01:00
Oliver Gugger
2803a5f93c
cmd/pool: fix colliding cmd short name
...
Fixes #318 .
Short names must be unique. This commit renames the short command name
"r" for "pool accounts recover" to "re" to not conflict with "renew".
2021-12-01 15:18:09 +01:00
positiveblue
f9b444131e
order: add ExtendAccountBatchVersion support
...
- Add new `ExtendAccountBatchVersion` batchVersion.
- Use the right batch verification flow depending on the version.
2021-11-30 20:18:28 -08:00
positiveblue
70719b68ec
auctioneerrpc: Add new_expiry to AccountDiffs
...
The new field will be used for updating the account's expiry after
participating in a new batch for clients that support it.
2021-11-30 20:18:24 -08:00
Oliver Gugger
7f2f481810
Merge pull request #305 from lightninglabs/auto-renew
...
multi: extend account expiry after using it
2021-11-29 16:03:21 +01:00
Oliver Gugger
dc4ef7e981
cmd/pool: fix incorrect godoc
2021-11-29 11:08:40 +01:00
Oliver Gugger
acdc235d50
mod: bump version of auctioneerrpc submodule
2021-11-18 14:50:38 +01:00
Oliver Gugger
89f6dd6ce7
Merge pull request #315 from guggero/lnd-14-final
...
mod+version: bump lnd to v0.14.0-beta final, release v0.5.2-alpha
2021-11-18 14:44:03 +01:00
Oliver Gugger
badc7aec94
mod+version: bump lnd to v0.14.0-beta final, release v0.5.2-alpha
2021-11-18 14:00:49 +01:00
Jordi Montes
dbd72b8c4b
Merge pull request #313 from lightninglabs/mock-gen
...
mock: Add mockgen workflow
2021-11-16 13:38:10 -08:00
positiveblue
08921b51ad
mocks: udpate TestRegisterSidecar to use gomock
...
Create mocks for `sidecar/interfaces.go` and `internal/test/interfaces.go`
and use them for rewriting the `TestRegisterSidecar`.
2021-11-11 09:59:36 -08:00
positiveblue
f98f27b2fd
mock: Add mockgen workflow
...
- `make mock`: generates all the mocks for testing.
- `mock-check`: generates all the mocks + checks if any *.go file changed.
- `make gen`: generates all the auto generated files (protos + mocks).
- Add `mock-check` to our CI
2021-11-10 14:05:10 -08:00
positiveblue
dae849c332
account: support expiry update for deposits/withdraws
2021-11-09 17:58:43 -08:00
positiveblue
f94c9c284c
cmd/pool: add flags for exipry updates during Deposits/Withdraws
2021-11-09 17:48:52 -08:00
Olaoluwa Osuntokun
f6eebcb8a5
Merge pull request #300 from lightninglabs/lease-script-enfroce
...
multi: script lease enforcement
2021-11-09 17:32:04 -08:00
positiveblue
b1848de6ca
poolrpc: add account_expiry to Deposit/Withdraw
...
Follows the same format than in RenewAccount: one of `absolute_expiry`
or `relative_expiry`.
2021-11-09 12:17:54 -08:00
Oliver Gugger
5db7a10b4c
Merge pull request #312 from lightninglabs/fix-docs
...
docs: add default `conf_target` to new account cmd
2021-11-04 18:02:46 +01:00
positiveblue
e179cc647d
docs: add default conf_target to new account cmd
2021-11-04 09:52:28 -07:00
Oliver Gugger
b69ddce710
Merge pull request #311 from lightninglabs/macaroon-stateless
...
pool: conditionally create default macaroon file
2021-11-04 17:24:21 +01:00
Turtle
5b44ae53de
pool: conditionally create default macaroon file
...
In some cases we don't want the default macaroon file to be created on
disk, so we allow passing in a boolean that toggles the macaroon
creation.
2021-11-04 14:09:02 +01:00