Commit Graph

14278 Commits

Author SHA1 Message Date
feb8e7e64e aliasmgr: export StartingAlias so other packages can use it 2023-01-25 12:03:19 -05:00
9187d4679b Merge pull request #7231 from ziggie1984/sign_verify_message_with_addr
Sign/Verify messages and signatures for single addresses
2023-01-24 20:30:15 +01:00
bf368a3d43 docs: add 0.16.0 release notes 2023-01-24 18:21:46 +01:00
97f139b617 Merge pull request #7353 from bottlepay/bump-kvdb-etcd
kvdb: bump etcd to v3.5.7
kvdb/v1.4.1
2023-01-24 15:58:15 +01:00
f4400eabe4 Merge pull request #7352 from ellemouton/removeEtcdCleanups
kvdb: remove etcd test fixture cleanup calls
2023-01-24 13:52:37 +01:00
1725e5bcbe kvdb: bump etcd to v3.5.7 2023-01-24 13:52:20 +01:00
5edf64f4c5 lncli: add sign/verify message with an address
adds the functionality in the lncli walletkit to sign and verify a
message with a single address. Signing works only with lnd default
wallet account. Verifying signature on messages with external addresses
is also supported.
2023-01-24 09:23:47 +01:00
39b77edca1 btcwallet: fix typo 2023-01-24 09:23:47 +01:00
28bceb23c8 walletrpc: add test sign/verify methods
Test the introduced methods sign/verify messages for single addresses
2023-01-24 09:23:42 +01:00
7b68289a7a walletrpc: add sign/verify methods
Adding the grpc functionality to sign and verify messages with
single addresses
2023-01-24 09:22:05 +01:00
2b4de46c72 kvdb+docs: remove etcd test fixture cleanup calls
Remove the cleanup calls which no longer exist since `t.Cleanup` is now
called from within `NewEtcdTestFixture`
2023-01-24 09:23:50 +02:00
266cd97573 Merge pull request #7251 from ellemouton/sqlite-pt1
kvdb: add sqlite
kvdb/v1.4.0
2023-01-23 17:26:15 -08:00
3a6aaf6275 Merge pull request #7303 from ziggie1984/fuzz_tests_custommessages
Add Custom Message to Fuzz Testing
2023-01-23 10:13:39 +01:00
43bc2737c1 docs: update release notes 2023-01-23 09:14:11 +02:00
74b9c9ce9a kvdb: add sqlite 2023-01-23 09:14:08 +02:00
3d91bb65f7 kvdb: unify how the db backend for tests is set 2023-01-23 09:05:11 +02:00
170160f28a kvdb+refactor: move all general sqlite code to seprate dir
In this commit, all the sql, non-postgres-specific, code is moved out of
the postgres package and into a new sqlbase package. This will make it
more easily reusable for future sql integrations.
2023-01-23 09:05:11 +02:00
30ba8cbae9 kvdb/postgres: separate general sql code from postgres
In this commit, changes are made to the `kvdb/postgres` package so that
all all the non-postgres-specific code is generalised to be applicable
for all sql code. A follow up commit will move all the general sql code
into its own package.
2023-01-23 09:05:11 +02:00
3dfaa88bb4 kvdb/postgres: remove old +build directive and cleanup
Due to the update of the kvdb package to go1.18, the `// +build`
directives are no longer required. They are removed in this commit in
order to simplify upcoming commits. Along the way, a few typos are fixed
and an unused struct is removed.
2023-01-23 09:05:11 +02:00
c6abf585ee kvdb/postgres: make global dbConns thread safe
In this commit, a mutex is added to guard access to the global dbConns
variable in the kvdb/postgres package.
2023-01-23 09:05:11 +02:00
72dbc3dbb4 kvdb: bump go version to 1.18
Bump the go version to go1.18 so that we can get rid of the '// +build'
comments in the upcoming commits where some of the '//go:build'
comments will become too complex to write as '// +build' comments.
2023-01-23 09:05:10 +02:00
4e3dc95d84 docs: add 0.16.0 release notes 2023-01-21 08:50:02 +01:00
88a8c6618d lnwire: add custom message to fuzz tests 2023-01-21 08:46:55 +01:00
35caaf3c53 Merge pull request #7334 from positiveblue/invoice-type-helper
channeldb/invoices: add `IsAMP` and `IsKeysend` helpers
2023-01-20 16:34:20 +01:00
2942f1201b docs: update release notes 2023-01-20 03:43:43 -08:00
8563e1f409 channeldb/invoices: add IsAMP and IsKeysend helpers
The only way to know if an invoice is AMP, Keysend, etc is to look at
its shape/characteristics. This commit adds a couple of helper functions
to encapsulate the logic of these checks.

If all these types cannot intersect: an invoice cannot be AMP and
Keysend or Keysend and Bolt12, etc it could be useful to add an extra
field to store this information instead of relying on checking how the
invoice looks like.
2023-01-20 03:43:39 -08:00
0eb07c944c Merge pull request #7330 from yyforyongyu/routing-rm-mtx
routing: remove the mutex lock inside `ChannelRouter`
2023-01-19 16:15:02 +01:00
b5bf658780 Merge pull request #7337 from yyforyongyu/fix-unit-test
bitcoindnotify: fix subtest closure in unit tests
2023-01-19 14:54:25 +01:00
1f67d6a548 bitcoindnotify: fix subtest closure in unit tests 2023-01-19 21:06:23 +08:00
1a1fe37ad4 docs: update release notes 2023-01-19 07:08:18 +08:00
fa2c766866 routing: remove the mutex and use SyncMap instead
This commit removes the lock used to protect the map `topologyClients`
and replace the map with a `SyncMap`.
2023-01-19 07:08:18 +08:00
692cd4bc4f lnutils+lntemp: move SyncMap to lnutils
This commit moves the `SyncMap` from `lntemp/node` into `lnutils` so it
can be used by other packages.
2023-01-19 07:08:18 +08:00
89b0e25e2c multi: add lnutils to host fundamental utility functions
We also move the `fn/stream.go` into the package `lnutils`. Eventually
we will put all the [utility
functions](https://github.com/lightninglabs/taro/tree/main/chanutils)
into this package.
2023-01-19 06:38:50 +08:00
48c8c1bf48 Merge pull request #6824 from yyforyongyu/5-new-itest
itest: continued itest refactor and fix - IV
2023-01-18 22:14:29 +01:00
c38be044d3 Merge pull request #7335 from guggero/disable-gomnd
lint: disable gomnd
2023-01-18 10:43:00 +01:00
716febc6c7 Merge pull request #7336 from positiveblue/fix-race-condition
routing: fix reace condition in `TestUpdatePaymentState`
2023-01-18 09:26:28 +01:00
107404dfb8 itest+lntemp: refactor testCustomMessage 2023-01-18 10:53:59 +08:00
faa9ba505d docs: update release docs 2023-01-18 10:53:58 +08:00
7bd8ae08c0 lntest: fix completePaymentRequestsAssertStatus
This commit moves the assertion `AssertPaymentStatusFromStream` outside
of the goroutine so the test won't fail after the case is finished.
2023-01-18 10:53:58 +08:00
178e4b0103 lntemp+lntest: fix make lint 2023-01-18 10:53:58 +08:00
f3ad66b363 lntest+lntest: inherit node's public states when restarting it
This commit changes how a node's state is created during startup. When
it already has states, only its internal states are reset since these
info are only useful for the finished test. The name `InitRPCClients` is
changed to `Initialize` to reflect the fact that it's more than
initializing RPC clients.
2023-01-18 10:53:58 +08:00
0b0c0f12ee lntemp+lntest: refactor testOpenChannelUpdateFeePolicy 2023-01-18 10:53:58 +08:00
1cb7ea1a0c itest+lntemp: refactor testTrackPayments 2023-01-18 10:53:58 +08:00
368b3337bd itest: refactor testTaprootCoopClose 2023-01-18 10:53:58 +08:00
38eaa36d90 lntemp+itest: refactor testRemoteSigner 2023-01-18 10:53:57 +08:00
b8566359da lntemp+itest: refactor testAsyncPayments 2023-01-18 10:53:57 +08:00
9000994b7b lntemp+itest: refactor wallet import tests 2023-01-18 10:53:57 +08:00
0176d58b85 itest: refactor testTaproot 2023-01-18 10:53:57 +08:00
8ba5f399d3 lntemp: prepare assertions for testTaproot 2023-01-18 10:53:57 +08:00
d78af3cec6 lntemp+itest: refactor testSignPsbt 2023-01-18 10:53:56 +08:00