Commit Graph

14541 Commits

Author SHA1 Message Date
eugene
feb8e7e64e aliasmgr: export StartingAlias so other packages can use it 2023-01-25 12:03:19 -05:00
Oliver Gugger
fe5254510e multi: warn user if they try to switch db types
Warn a user if they attempt to initialise a new db type (sqlite or
postgres) if an old bbolt db file is found.
2023-01-25 14:16:56 +02:00
Elle Mouton
c89e5b68b0 docs: add release note 2023-01-25 14:16:56 +02:00
Chris Geihsler
b39049f17f docs: add sqlite instructions 2023-01-25 14:16:56 +02:00
Chris Geihsler
a5eaabf548 multi: add sqlite option to itests and github job 2023-01-25 14:16:56 +02:00
Chris Geihsler
8c4d3345e9 make: add kvdb_sqlite to build flags 2023-01-25 14:16:56 +02:00
Elle Mouton
8363c4075c multi: add sqlite backend option
In this diff, we expose the option to use sqlite as a db backend.
2023-01-25 14:16:55 +02:00
Elle Mouton
2fd4f3f180 go.mod+lnrpc+github: point to latest kvdb changes
Use kvdb package v1.4.1. This update also forced the protobuf version to
be bumped which required `make rpc` to be run to update the generated
files. This also required a bump in the github pinned dependencies
config for the grpc and protobuf libs.
2023-01-25 14:03:00 +02:00
Olaoluwa Osuntokun
be047096c2 docs/release-notes: add entry for taproot sighash bug fix 2023-01-24 19:47:39 -08:00
Olaoluwa Osuntokun
3d8f284af7 lntest/itest: update taproot signing itest to use default and non-default sighashes
Without the prior commit, this test fails with:
```
rpc error: code = Unknown desc = malformed signature: too long: 65 > 64
```
2023-01-24 19:47:34 -08:00
Olaoluwa Osuntokun
8ab598e40c lntest/itest: make publishTxAndConfirmSweep a test helper
Calling ht.Helper() means we'll get the proper line number if an error
hapens.
2023-01-24 19:47:31 -08:00
Olaoluwa Osuntokun
843c62b59d lnwallet: ensure that SignOutputRaw can sign w/ non-default sighash for schnorr sigs
Before this commitment, we'd end up failing in `schnorr.ParseSignature`
if a non-default sighash was used. To fix that, we'll slice the
signature to only pass in the sig w/o the sighash flag.
2023-01-24 19:47:29 -08:00
Olaoluwa Osuntokun
9b422acffe build: update to latest version of btcd 2023-01-24 19:47:26 -08:00
Oliver Gugger
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
ziggie
bf368a3d43 docs: add 0.16.0 release notes 2023-01-24 18:21:46 +01:00
Oliver Gugger
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
Oliver Gugger
f4400eabe4 Merge pull request #7352 from ellemouton/removeEtcdCleanups
kvdb: remove etcd test fixture cleanup calls
2023-01-24 13:52:37 +01:00
Joost Jager
1725e5bcbe kvdb: bump etcd to v3.5.7 2023-01-24 13:52:20 +01:00
Joost Jager
b50d59ec2e lnwallet/test: assert final resolution db storage 2023-01-24 13:34:02 +01:00
ziggie
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
ziggie
39b77edca1 btcwallet: fix typo 2023-01-24 09:23:47 +01:00
ziggie
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
ziggie
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
Elle Mouton
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
Olaoluwa Osuntokun
266cd97573 Merge pull request #7251 from ellemouton/sqlite-pt1
kvdb: add sqlite
kvdb/v1.4.0
2023-01-23 17:26:15 -08:00
Oliver Gugger
3a6aaf6275 Merge pull request #7303 from ziggie1984/fuzz_tests_custommessages
Add Custom Message to Fuzz Testing
2023-01-23 10:13:39 +01:00
Elle Mouton
43bc2737c1 docs: update release notes 2023-01-23 09:14:11 +02:00
Elle Mouton
74b9c9ce9a kvdb: add sqlite 2023-01-23 09:14:08 +02:00
Chris Geihsler
3d91bb65f7 kvdb: unify how the db backend for tests is set 2023-01-23 09:05:11 +02:00
Elle Mouton
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
Elle Mouton
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
Elle Mouton
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
Elle Mouton
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
Elle Mouton
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
ziggie
4e3dc95d84 docs: add 0.16.0 release notes 2023-01-21 08:50:02 +01:00
ziggie
88a8c6618d lnwire: add custom message to fuzz tests 2023-01-21 08:46:55 +01:00
Oliver Gugger
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
positiveblue
2942f1201b docs: update release notes 2023-01-20 03:43:43 -08:00
positiveblue
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
Oliver Gugger
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
Oliver Gugger
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
yyforyongyu
1f67d6a548 bitcoindnotify: fix subtest closure in unit tests 2023-01-19 21:06:23 +08:00
yyforyongyu
1a1fe37ad4 docs: update release notes 2023-01-19 07:08:18 +08:00
yyforyongyu
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
yyforyongyu
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
yyforyongyu
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
Oliver Gugger
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
Oliver Gugger
c38be044d3 Merge pull request #7335 from guggero/disable-gomnd
lint: disable gomnd
2023-01-18 10:43:00 +01:00
Oliver Gugger
716febc6c7 Merge pull request #7336 from positiveblue/fix-race-condition
routing: fix reace condition in `TestUpdatePaymentState`
2023-01-18 09:26:28 +01:00
yyforyongyu
107404dfb8 itest+lntemp: refactor testCustomMessage 2023-01-18 10:53:59 +08:00