Emilio Ziniades
d8b9a2d042
input: note to update witness type protobuf
2023-04-12 21:58:12 +02:00
Emilio Ziniades
396a138fb7
lnrpc: add allWitnessTypes
map
...
Refactor `PendingSweeps` to use `allWitnessTypes` map, and
return an error from `PendingSweeps` if an unknown witness
type is used, instead of logging a warning.
2023-04-12 21:58:00 +02:00
Emilio Ziniades
e9547daae2
lnrpc: update and regenerate witness type proto
2023-04-12 21:57:35 +02:00
Olaoluwa Osuntokun
158e93f114
Merge pull request #7464 from guggero/script-builder-capacity
...
input: reduce memory allocation for ScriptBuilder
2023-04-11 15:07:47 -07:00
Olaoluwa Osuntokun
30010dbaa1
Merge pull request #7593 from guggero/remote-signing-docs
...
docs: update remote signing docs
2023-04-11 14:51:02 -07:00
Oliver Gugger
b875084cbe
docs: update remote signing docs
...
With this commit we update the docs according to the latest changes that
were necessary to support loop and pool (which requires all 255
internally used accounts to be imported at wallet creation time).
Fixes #7567 .
2023-04-11 20:44:01 +02:00
Oliver Gugger
b6b536a1b9
Merge pull request #7550 from ardevd/proto-gen-dockerize-go
...
lnrpc: fully dockerize protobuf generation
2023-04-11 18:57:02 +02:00
ardevd
7c7c95e58a
lnrpc: fully dockerize protobuf generation
...
Remove the need for golang on the host by utilizing golang docker
containers to obtain protobuf and grpc gateway versions.
2023-04-11 16:25:11 +02:00
Oliver Gugger
5046399991
Merge pull request #7588 from Roasbeef/simnet-walletrpc-cointype-fix
...
config: fix bug in walletrpc interaction due to mismatched coin type
2023-04-11 13:46:43 +02:00
Oliver Gugger
559cb47ec2
Merge pull request #7513 from guggero/publish-tx-logging
...
wallet: improve logging around transaction broadcast failures
2023-04-11 12:53:06 +02:00
Oliver Gugger
154e654dc0
docs: add release notes
2023-04-11 12:49:27 +02:00
Oliver Gugger
26254d0730
docs: add release notes
2023-04-11 11:15:37 +02:00
Oliver Gugger
3beaf7c4c1
channeldb: use input.GenMultiSigScript
2023-04-11 11:15:36 +02:00
Oliver Gugger
79c275253c
input: set initial script allocation size
...
The default allocation of 500 bytes for the script that is
used in NewScriptBuilder is way too much for most of our scripts.
With the new functional option we can tune the allocation to exactly
what we need.
2023-04-11 11:15:36 +02:00
Oliver Gugger
a47345bd6f
input: add script size unit and benchmark tests
2023-04-11 11:15:36 +02:00
Oliver Gugger
4bf97477ee
mod: bump btcd version
2023-04-11 10:33:19 +02:00
Oliver Gugger
9b3e4bd5c2
Merge pull request #7584 from lightningnetwork/dependabot/go_modules/golang.org/x/net-0.7.0
...
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
2023-04-11 09:32:17 +02:00
Olaoluwa Osuntokun
bb3d344fa4
Merge pull request #7563 from yyforyongyu/syncmap-methods
...
lnutils: add methods `ForEach`, `Len` and `LoadOrStore` to `SyncMap`
2023-04-10 17:00:19 -07:00
Olaoluwa Osuntokun
9580584f73
Merge pull request #7442 from 84adam/postgres-docs-schema-84adam
...
docs: add notes on contents of Postgres DB as Key-Value store to Postgres.md
2023-04-10 16:51:19 -07:00
Olaoluwa Osuntokun
ed0095fbba
config: fix bug in walletrpc interaction due to mismatched coin type
...
In this commit, we fix a bug that would cause the walletrpc on the
simnet chain to not be able to respond to all RPC calls. The issue is
that for the SimNet backend, within chainparams.go:
6e0a67d05b/chainreg/chainparams.go (L45-L51)
,
we set a new CoinType for Simnet in order to match the RegTest value.
Later on, when we go to verify the on disk accounts against the
in-memory cointype, we fall through to an error case as the in-memory
cointype is 115, while the on disk cointype is 1.
To fix this, when we know we're doing simnet mode, we'll override the
cointype similar to the way we did/do for LTC.
Fixes https://github.com/lightningnetwork/lnd/issues/6807 .
2023-04-10 11:43:21 -07:00
yyforyongyu
8887938429
lnutils: add unit test for SyncMap
2023-04-07 17:34:48 +08:00
yyforyongyu
d1d75d0815
lnutils: add methods ForEach
, Len
and LoadOrStore
to SyncMap
2023-04-07 17:34:45 +08:00
Olaoluwa Osuntokun
6e0a67d05b
Merge pull request #7582 from Roasbeef/go-1-20-3
...
build: update build system to Go 1.20.3
2023-04-06 11:38:49 -07:00
Olaoluwa Osuntokun
a72fb7d3f5
Merge pull request #7585 from lightningnetwork/0-16-1-staging
...
lnd: manual merge docker bump into master branch
2023-04-06 11:38:22 -07:00
Olaoluwa Osuntokun
591ff120b6
Merge pull request #6903 from hieblmi/fundmax-flag
...
funding: add `fundmax` flag to `OpenChannelRequest`
2023-04-06 10:57:29 -07:00
Olaoluwa Osuntokun
a144eedc51
Merge pull request #7560 from guggero/btcd-version
...
docker+docs: bump btcd version
2023-04-05 17:21:54 -07:00
dependabot[bot]
3960e1538a
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 23:49:31 +00:00
Olaoluwa Osuntokun
f9f08079d0
Merge pull request #7576 from lightningnetwork/0-17-0-staging
...
lnd: merge v0.17.0 staging branch into master
2023-04-05 16:48:50 -07:00
Olaoluwa Osuntokun
2596a33529
Merge pull request #7575 from lightningnetwork/0-16-1-staging
...
lnd: merge the 0.16.1 staging branch into master
2023-04-05 16:48:25 -07:00
Slyghtning
e352899f22
docs: update release notes
2023-04-05 23:10:04 +02:00
Slyghtning
94900acaa0
funding unit: fundmax sanity check for new channel commitment types.
2023-04-05 23:10:04 +02:00
Slyghtning
ff45fc7e71
itest: respect the reserved wallet balance when using fundmax
2023-04-05 23:10:04 +02:00
Bjarne Magnussen
8c1cf21707
chanfunding: allow to set a reserved amount not used for funding
2023-04-05 23:10:03 +02:00
Bjarne Magnussen
d7f578b0d9
lntest/itest: adds tests for fundmax
flag of cli:openchannel
2023-04-05 23:09:12 +02:00
Slyghtning
b9bded33d1
lncli: fundmax flag for openchannel
2023-04-05 23:09:12 +02:00
Slyghtning
5d88693852
lnd+lnwallet: fundmax flag for openchannel
2023-04-05 23:09:11 +02:00
Bjarne Magnussen
0e5b3e77cb
lnd: handles the FundMax
field inside parseOpenChannelReq
...
Adds handling of the `FundMax` field when parsing an
`OpenChannelRequest` with `rpcServer.parseOpenChannelReq`.
2023-04-05 23:05:07 +02:00
Bjarne Magnussen
e82410d24a
lnrpc: adds a field FundMax
to OpenChannelRequest
2023-04-05 23:05:07 +02:00
Bjarne Magnussen
0c8aa81ed5
chanfunding: adds ability to fund up to some maximum amount
...
Allows to define a maximum amount to provision a channel
opening with using a new field `FundUpToMaxAmt` on the
`Request` struct. Also adds a new coin select function
`CoinSelectUpToAmount` to select coins up to a maximum
amount respecting a minimum amount.
2023-04-05 23:05:06 +02:00
Olaoluwa Osuntokun
c0f4defe0b
build: update build system to Go 1.20.3
2023-04-05 11:28:34 -07:00
Olaoluwa Osuntokun
981771022b
Merge pull request #7574 from Roasbeef/16-99-version-bump
...
build: bump version to v0.16.99
2023-04-04 19:55:32 -07:00
Olaoluwa Osuntokun
febf1ab0d5
build: bump version to v0.16.99
...
In this commit, we bump the version of the master branch to v0.16.99.
This reflects the fact that master will be a super set of all the minor
releases until v0.17, and will also include changes towards v0.17.
2023-04-04 19:51:15 -07:00
Olaoluwa Osuntokun
f97454d4ff
Merge pull request #7359 from djkazic/fix/ldflags-on-mac-and-android
...
build: fix Makefile ldflags for mac and mobile, bump gomobile deps, enable gomodules
2023-04-04 18:05:21 -07:00
Oliver Gugger
4fcd5a0ab0
Merge pull request #7366 from djkazic/feature/listchannels-peer-scid-alias
...
Add `peer_scid_alias` field to lnrpc.Channel
2023-03-31 19:29:03 +02:00
djkazic
41016587eb
Add peer_scid_alias field to lnrpc.Channel
2023-03-31 11:20:27 -04:00
djkazic
bb5faf0f5a
make+docs: pull in modules patch
2023-03-31 10:15:21 -04:00
djkazic
2f994ceeae
mobile+mod+make: fix Makefile ldflags for mac and mobile
2023-03-31 09:54:35 -04:00
Oliver Gugger
9c16d199d7
Merge pull request #7541 from ellemouton/statusClientBehind
...
watchtower: let client recover after data loss
2023-03-31 15:16:07 +02:00
Elle Mouton
381dd8d460
docs: add release note for 7541
2023-03-31 12:05:59 +02:00
Elle Mouton
ba33f6a697
wtclient: spin session key indices if required
...
If the tower returns CreateSessionCodeAlreadyExists in response to the
CreateSession message from the client, then skip forward a few key
indices until we find one that the server does not return the error
for. This will allow a client to recover after a data loss incident.
2023-03-31 12:05:58 +02:00