Commit Graph

14936 Commits

Author SHA1 Message Date
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
0a2d6b61aa Merge pull request #7707 from ellemouton/wtclientFixes
watchtower: miscellaneous fixes
2023-05-19 12:22:04 +02:00
7f4bf7ce2b mod: update btcwallet's version 2023-05-19 16:36:21 +08:00
be820919f0 docs: update release notes for 0.17.0 2023-05-18 13:02:30 -04:00
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
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
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
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
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
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
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
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
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
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
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
0787cb1178 docs: add release note for 7705 2023-05-17 14:44:17 +02:00
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
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
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
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
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
250d764256 docs: add release note for 7380 2023-05-16 10:57:50 +02:00
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
56cd825695 watchtower: replace taskpipeline with disk overflow queue 2023-05-16 10:57:50 +02:00
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
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
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
a946715b7e watchtower/wtdb: add a generic Queue interface 2023-05-16 10:57:49 +02:00
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
51a23b0901 Merge pull request #7688 from bshramin/update-docker-images
Update docker images
2023-05-15 19:12:59 +02:00
a455b9166d lnrpc: update docker base image version 2023-05-15 10:21:47 -06:00
35c0bd8f81 ltcd: update docker base image version 2023-05-15 10:21:39 -06:00
7b6a45bcbf btcd: update docker base image version 2023-05-15 10:21:30 -06:00
d8eb6dab82 Merge pull request #7649 from morehouse/fuzz_lnwire_signature
lnwire: signature parsing/conversion fuzz tests
2023-05-12 18:35:06 +02:00
55aa7a7bb2 docs: release note for #7649 2023-05-12 11:08:54 -05:00
e198e6693f lnwire: add FuzzConvertFixedSignature test
Test conversion of fixed 64-byte signatures to DER-encoded signatures.
2023-05-12 11:07:57 -05:00
a6a7066454 lnwire: add FuzzParseRawSignature test
Test parsing and serialization of raw DER-encoded signatures.
2023-05-12 11:07:54 -05:00
c2d2d448fb Merge pull request #7486 from sangaman/amt-paid-accepted
lnrpc: update docs for invoice amt_paid
2023-05-12 12:26:15 +02:00
58a73bae39 Merge pull request #7049 from MStreet3/bug/fix-race-neutrinotest
Bug/fix race neutrinotest
2023-05-12 09:23:14 +02:00
5e33e790c5 docs: adds release notes 2023-05-11 18:30:38 -04:00
e73f54ec5d deps: bumps btcwallet version 2023-05-11 18:24:18 -04:00
71c4e72fad Merge pull request #7659 from guggero/lncli-json-hex-replacement
lncli: replace deprecated fork for serializing protobuf as JSON with new one
2023-05-12 00:17:29 +02:00
301be1bb08 docs: add release notes 2023-05-11 22:52:52 +02:00
5583926fb9 lint: allow security replace directives 2023-05-11 22:52:52 +02:00
b5d23bba06 mod+lnrpc: use hex encoding jsonpb fork 2023-05-11 22:52:52 +02:00
9615ce20d6 mod: bump github.com/ulikunitz/xz to v0.5.11
There is a CVE (CVE-2021-29482) out there for versions previous to
v0.5.11 of the xz library.
2023-05-11 22:52:51 +02:00
451f033855 mod: remove unused replace directive
With recent updates to some of our dependencies, the
github.com/dgrijalva/jwt-go package is not referenced in any transitive
dependency anymore which allows us to remove one of the replace
directives which was added as a security precaution before.
2023-05-11 22:52:51 +02:00
ea8fe6f3f3 mod+lnrpc: bump google.golang.org/protobuf to v1.30.0 2023-05-11 22:52:00 +02:00
f9436ec05d mod+cmd/lncli: use google.golang.org/protobuf package 2023-05-11 22:51:16 +02:00
fd9adaf6ce Merge pull request #7646 from yyforyongyu/itest-reduce-blocks
itest: mine less blocks to speed up tests
2023-05-10 13:09:12 +02:00