Commit Graph
14854 Commits
Author SHA1 Message Date
Matt Morehouse c38bb899bb docs: release note for #7709 2023-05-23 08:38:17 -05:00
Matt Morehouse 4c2e712581 wtwire: use require package for fuzz tests
Simplify code by using the require package instead of t.Fatal().
2023-05-23 08:37:22 -05:00
Matt Morehouse 460ba4ad82 lnwire: use require package for fuzz tests
Simplify code by using the require package instead of t.Fatal().
2023-05-23 08:37:22 -05:00
Oliver Gugger b95faaba45 Merge pull request #7720 from ellemouton/updateReleaseNotes
docs: move entry for 7705 to 0.16.3
2023-05-23 09:07:40 +02:00
Elle Mouton dbc83f4e9e docs: move entry for 7705 to 0.16.3 2023-05-23 06:55:36 +02:00
Oliver Gugger 8c58730c34 Merge pull request #7693 from gcaracuel/lncli_env_global_flags
lncli: Global flags to accept ENV vars overrides
2023-05-22 22:15:57 +02:00
gcaracuel 12e7c24520 lncli: Global flags to accept ENV vars overrides. 2023-05-22 17:13:18 +02:00
Oliver Gugger a043cca77a Merge pull request #7712 from ErikEk/neutrinorpc-deprecate-getblockhash
Neutrinorpc: deprecate getblockhash
2023-05-22 12:16:04 +02:00
erik eff055e464 docs: release notes 2023-05-22 16:26:18 +07:00
erik 9ce02b96fe neutrinorpc: deprecate getblockhash 2023-05-22 16:26:10 +07:00
Oliver Gugger 3d53d6909a Merge pull request #7681 from yyforyongyu/btcwallet-mempool
mod: update btcwallet's version
2023-05-22 10:24:17 +02:00
Oliver Gugger d5f5565e50 Merge pull request #7494 from morehouse/fuzz_ci
github: run fuzz tests with unit tests
2023-05-22 10:14:44 +02:00
Matt Morehouse 59bd7b0538 docs: release note for #7494 2023-05-19 15:51:19 -05:00
Matt Morehouse acace4d330 github: run fuzz tests with unit tests
We download and extract the fuzzing seed corpora into the LND tree so
that "make unit" automatically runs the fuzz tests on the seeds.
2023-05-19 15:48:11 -05:00
yyforyongyu 403b937dca docs: add release notes 0.16.3 2023-05-20 00:33:56 +08:00
yyforyongyu 0b64ba94c0 itest: cleanup channels for testSwitchOfflineDeliveryOutgoingOffline 2023-05-20 00:33:56 +08:00
yyforyongyu 931481c4fe itest: make sure edges are updated in mpp tests 2023-05-20 00:33:56 +08:00
yyforyongyu c6cfc425a0 lntest+itest: clean mempool in testHtlcTimeoutResolverExtractPreimageRemote 2023-05-20 00:33:04 +08:00
Oliver Gugger ac3e7be9a0 Merge pull request #7668 from shaurya947/open-channel-memo
multi: accept memo note when opening channel
2023-05-19 16:13:13 +02:00
Oliver Gugger 0a2d6b61aa Merge pull request #7707 from ellemouton/wtclientFixes
watchtower: miscellaneous fixes
2023-05-19 12:22:04 +02:00
yyforyongyu 7f4bf7ce2b mod: update btcwallet's version 2023-05-19 16:36:21 +08:00
shaurya947 be820919f0 docs: update release notes for 0.17.0 2023-05-18 13:02:30 -04:00
shaurya947 84fff6e0a7 itest: update channel creation itest with Memo field logic
We test both the happy path (valid memo is returned when querying),
as well as the unhappy path (invalid memo rejects the open action).
To accomplish this, we update the OpenChannelParams struct inside
the harness to accept the Memo.
2023-05-18 13:02:30 -04:00
shaurya947 c8e4d8e69b rpcserver: attach channel Memo to *lnrpc.Channel struct
This allows us the memo to be returned in responses such as
listchannels.
2023-05-18 13:02:30 -04:00
shaurya947 396a4cb6c4 channeldb: persist channel Memo field and read it when fetching
We add a Memo field to the OpenChannel DB struct. We also persist
it using a tlv record. We then pass the Memo value from the
InitFundingReserveMsg when creating a new reservation for the channel.
Finally, we also read Memo field when fetching channel from DB.
2023-05-18 13:02:30 -04:00
shaurya947 db44924c5a lnwallet: add Memo to InitFundingReserveMsg
We also pass the value of Memo from funding/manager.go.
2023-05-18 13:02:30 -04:00
shaurya947 7c6faa4c98 funding: add Memo to InitFundingMsg struct
We add byte-array field called Memo to the InitFundingMsg struct.
We also provide a value for this from
rpcserver.go#parseOpenChannelReq().
2023-05-18 13:02:30 -04:00
shaurya947 1724409647 rpcserver: enforce memo length is less than 500 characters
In this commit we ensure that the string length of the memo field
specified as part of the OpenChannelRequest is no longer than 500.
2023-05-18 13:02:24 -04:00
shaurya947 373e445cdc lncli: add optional memo flag to openchannel cmd
This commit simply adds a new memo flag to the openchannel command.
Memo could be any note-to-self kind of useful information to go
along with the channel. The value isn't used yet, will be in the
next commit.
2023-05-18 12:51:18 -04:00
shaurya947 9feb3dd920 lnrpc: add memo field to OpenChannelRequest and ListChannelsResponse
This commit adds the memo field to the protobuf message and generates
the new go files.
2023-05-18 12:50:19 -04:00
Elle Mouton 8abe2f89e1 watchtower: use a stable blob identifier
In this commit, we add an Identifier method to the blob.Type struct
which returns a unique identifier for a given blob type. This identifier
is then used for initialising the disk overflow queue of the given
client.
2023-05-18 15:17:22 +02:00
Elle Mouton db145bfd8e wtclient: check un-checked errors
Some errors are not checked during startup and shutdown of the tower
client. These are checked now.
2023-05-18 15:13:24 +02:00
Oliver Gugger 2fd40d16f1 Merge pull request #7705 from ellemouton/macStoreRootKeyReEncyption
macaroons: ensure all root keys are re-encrypted or regenerated
2023-05-17 16:30:48 +02:00
Elle Mouton 0787cb1178 docs: add release note for 7705 2023-05-17 14:44:17 +02:00
Elle Mouton f9d99153e0 macaroons: let ChangePassword re-encrypt all root keys
The ChangePasswords method should re-encrypt all the root keys found
in the store, not just the default root key.
2023-05-17 14:44:15 +02:00
Elle Mouton 5ffe5552db macaroons: demo ChangePassword bug
This commits uses TestStoreChangePassword to demonstrate that currently
the ChangePassword function only changes the password of the default
root key and not that of other root keys. This will be fixed in an
upcoming commit.
2023-05-17 14:42:29 +02:00
Elle Mouton d43ef314d3 macaroons: Let GenerateNewRootKey be applied to all root keys
With this commit, GenerateNewRootKey will regenerate the Default root
key and will then also check if any other root keys exist and regenerate
those as well.
2023-05-17 14:06:32 +02:00
Elle Mouton 00ff934169 macaroons: demo GenerateNewRootKey bug
This commit adds to the existing TestStoreGenerateNewRootKey to show
that the method only successfully regenerates the root key in the
default root key ID location. This will be fixed in an upcoming commit.
2023-05-17 14:02:57 +02:00
Oliver Gugger bdb41e5867 Merge pull request #7380 from ellemouton/wtclientDiskQueue
watchtower: replace in-mem task queue with a disk over-flow queue
2023-05-16 12:28:53 +02:00
Elle Mouton 250d764256 docs: add release note for 7380 2023-05-16 10:57:50 +02:00
Elle Mouton 1cdf15a39b server+lncfg: make max in-mem tasks configurable
Add a `MaxTasksInMemQueue` field to the `WtClient` config so that users
can change the default if they please.
2023-05-16 10:57:50 +02:00
Elle Mouton 56cd825695 watchtower: replace taskpipeline with disk overflow queue 2023-05-16 10:57:50 +02:00
Elle Mouton e91fe50878 watchtower/wtclient: generic disk overflow queue
In this commit, a new generic DiskOverflowQueue implementation is added.
This allows a user to specify a maximum number of items that the queue
can hold in-memory. Any new items will then overflow to disk. The
producer and consumer of the queue items will interact with the queue
just like a normal in-memory queue.
2023-05-16 10:57:50 +02:00
Elle Mouton 66f6bf3955 watchtower/wtmock: add in-memory impl of Queue
This commit adds an in-memory implementation of the Queue interface.
This can be used for tests.
2023-05-16 10:57:49 +02:00
Elle Mouton 5cc7438d33 watchtower/wtdb: add bolt db impl of Queue
This commit adds a new generic DiskQueueDB type which is an
bbolt implementation of the Queue interface.
2023-05-16 10:57:49 +02:00
Elle Mouton a946715b7e watchtower/wtdb: add a generic Queue interface 2023-05-16 10:57:49 +02:00
Elle Mouton 01e2f10797 wtclient: demo that in-mem updates are lost
This commit adds a test to the wtclient. The test demonstrates that if a
client tries to back up states while it has no active sessions with a
server then those updates are accumlated in memory and lost on restart.
This will be fixed in upcoming commits.
2023-05-16 10:57:49 +02:00
Oliver Gugger 51a23b0901 Merge pull request #7688 from bshramin/update-docker-images
Update docker images
2023-05-15 19:12:59 +02:00
Amin Bashiri a455b9166d lnrpc: update docker base image version 2023-05-15 10:21:47 -06:00
Amin Bashiri 35c0bd8f81 ltcd: update docker base image version 2023-05-15 10:21:39 -06:00