Commit Graph

226 Commits

Author SHA1 Message Date
Oliver Gugger
fa7df9e11f Merge pull request #92 from lightninglabs/lnd-0-16-0-final
mod: bump lnd to v0.16.0-beta
v0.1.20-beta
2023-03-29 15:36:41 +02:00
Oliver Gugger
fec2bbee26 mod: bump lnd to v0.16.0-beta 2023-03-29 15:30:04 +02:00
Oliver Gugger
b952e4ee6f Merge pull request #85 from lightninglabs/lnd-16
prepare for lnd 0.16
2023-02-27 13:43:49 +01:00
Oliver Gugger
27f3a1e15a multi: fix grpc version issue 2023-02-27 13:36:56 +01:00
Oliver Gugger
2b1feae753 multi: bump lnd+lndclient compile time dependency 2023-02-27 13:36:54 +01:00
Oliver Gugger
f7883eb1a5 Merge pull request #89 from lightninglabs/dependabot/go_modules/golang.org/x/crypto-0.1.0
build(deps): bump golang.org/x/crypto from 0.0.0-20211215153901-e495a2d5b3d3 to 0.1.0
2023-02-27 12:26:48 +01:00
dependabot[bot]
eabc2c1dc2 build(deps): bump golang.org/x/crypto
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20211215153901-e495a2d5b3d3 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 08:33:29 +00:00
Oliver Gugger
28849d1205 Merge pull request #88 from lightninglabs/dependabot/go_modules/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.0.0-20220722155237-a158d28d115b to 0.7.0
2023-02-27 09:32:40 +01:00
dependabot[bot]
71136e6b96 build(deps): bump golang.org/x/net
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220722155237-a158d28d115b to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 01:46:07 +00:00
Oliver Gugger
70cefb99ec Merge pull request #86 from lightninglabs/dependabot/go_modules/github.com/prometheus/client_golang-1.11.1
build(deps): bump github.com/prometheus/client_golang from 1.11.0 to 1.11.1
2023-02-15 11:55:21 +01:00
dependabot[bot]
85f5d953da build(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-15 02:42:15 +00:00
Oliver Gugger
9badd7fb5e multi: remove Tor v2 support v0.1.19-beta 2023-01-27 16:42:23 +01:00
Oliver Gugger
9998883cbc Merge pull request #84 from ffranr/upgrade_lnd_tor
Upgrade lnd tor to version v1.1.0
2023-01-27 16:34:18 +01:00
ffranr
4f8e09f156 lint: remove depreciated tls config field
From the docs:
PreferServerCipherSuites is a legacy field and has no effect.
It used to control whether the server would follow the client's or the
server's preference. Servers now select the best mutually supported
cipher suite based on logic that takes into account inferred client
hardware, server hardware, and security.
2023-01-27 13:27:38 +00:00
ffranr
db30c8384d lint: remove depreciated io/ioutil
As of Go 1.16, functionality provided in io/ioutil has been depreciated
in favour of the io or os packages. Now that Go has been
upgraded in go.mod, the linter will not pass without these changes.
2023-01-27 13:27:38 +00:00
ffranr
73ed7bfc52 lint: rename private struct field: freebieDb
freebieDb -> freebieDB
Change suggested by linter stylecheck (rule: ST1003).
2023-01-27 12:41:18 +00:00
ffranr
f241a966e0 lint: correct formatting 2023-01-27 12:41:17 +00:00
ffranr
6e9bd0d784 lint: gocritic: silence append func warning 2023-01-27 12:41:17 +00:00
ffranr
daf5aa00e3 lint: disable new sub-linters to match pre-upgrade
This change ensures that the majority of the codebase still passes the
newly upgraded linter.
2023-01-27 12:41:16 +00:00
ffranr
12f949758b lint: use linter from aperture-tools docker image 2023-01-27 12:41:10 +00:00
ffranr
97dbfca77c lint: add codebase tools directory
Update golangci-lint: v1.18.0 --> v1.50.1
Linter was updated to fix internal panic which was probably caused by
the Golang update.

The tools directory contains helper programs for managing the health of
the codebase. The directory is based on the equivalent directory found
in the taro codebase at commit 64e9dc9ccadb9269a1985ce2ff03cfc3a83d0470
2023-01-27 12:36:23 +00:00
ffranr
0096d68a48 ci+docker: bump go version 2023-01-27 12:34:19 +00:00
ffranr
8694f147d5 unit tests: remove use of onion type V2
We only support tor V3.
2023-01-27 12:34:18 +00:00
ffranr
158eb0bed1 onion_store: remove tor V2 + use new OnionStore
The target version of the tor.OnionStore interface methods do not accept
onion type as an argument. Further, tor V2 was depreciated in October
2021. We can therefore remove support for tor V2.
2023-01-27 12:34:18 +00:00
ffranr
a5659a82cb go.mod+go.sum: run: go mod tidy 2023-01-27 12:29:45 +00:00
ffranr
bd9102b65b go.mod: bump go version 2023-01-27 12:29:44 +00:00
ffranr
2976ec4de2 go.mod: upgrade lnd dependency
The lnd dependency is upgraded to the version currently used by taro.

The motivation behind upgrading lnd is to upgrade lnd/tor to v1.1.0

unit tests: mock signer: add missing interface methods

unit tests: mock signer: add missing interface method arguments

unit tests: mock walletkit: add missing interface method arguments

unit tests: mock lightning client: add missing interface method arguments

unit tests: mock chain notifier: add missing interface method arguments
2023-01-24 18:40:21 +00:00
ffranr
349feabd79 add .editorconfig 2023-01-23 18:03:32 +00:00
Oliver Gugger
92a4def656 Merge pull request #82 from ellemouton/gcMailbox3
multi: gc stale mailboxes
2022-09-29 12:03:14 +02:00
Elle Mouton
870a617657 multi: gc stale mailboxes
In this commit, we start a timer if a mailbox stream is completely
un-occupied (neither read or write stream is occupied). The timer
stopped if either of the streams are occupied and is reset if both
streams are unoccupied.
2022-09-29 11:27:35 +02:00
Oliver Gugger
98d2c8d3a2 Merge pull request #76 from ellemouton/pprof
multi: profile server
2022-09-22 13:57:44 +02:00
Elle Mouton
cbc8a414f7 multi: add pprof
This commit adds a config option that can be set inorder to spin up a
pprof profile server on the given port.
2022-09-22 13:54:40 +02:00
Oliver Gugger
4113bf3f20 Merge pull request #75 from hieblmi/fix-readme
#55 Removing demo section in README.md
2022-04-21 09:47:00 +02:00
hieblmi
090e6bc533 #55 Removing demo section in README.md 2022-04-21 01:46:07 +02:00
Oliver Gugger
fb4b59400e Merge pull request #74 from ellemouton/dailyActiveUserMetrics
multi: add mailbox read counter
v0.1.18-beta
2022-04-11 15:38:59 +02:00
Elle Mouton
e60b09eb51 multi: add mailbox read counter
In this commit, we add a mailbox-read-count metric. This will be
incremented each time a mailbox with an _odd_ stream ID is read from.
We do this because we assume that a full duplex connection is being used
meaning that there will be 2 streams that have a matching ID except for
the last byte. And so to avoid duplicating the data, we only record the
odd streams. We also assume that for every read, there will be a write
and so we only record the reads.
2022-04-05 09:46:28 +02:00
Oliver Gugger
4a2632d0be Merge pull request #73 from guggero/race-fix
unit-race: fix race condition in unit tests
2022-03-28 09:24:56 +02:00
Oliver Gugger
2475dd1a8b github+Docker: bump and fix go version to 1.16.9
There's a race condition in the h2_bundle.go of go 1.16.10 and later. The
issue https://github.com/golang/go/issues/51799 mentions that this might
be fixed in go 1.19, so we'll need to wait for that.
We make sure we build our docker images with go 1.16.9 to not run into
the issue in the wild.
2022-03-25 14:22:32 +01:00
Oliver Gugger
d86e49706f aperture: only register prometheus metrics when enabled
To avoid running into an issue in the race unit test with the Prometheus
histogram metrics that aren't concurrency safe, we don't register any of
them if Prometheus isn't enabled in the first place.
This shouldn't be an issue in production, since we don't start multiple
instances of Aperture _within the same process_ at the same time.
2022-03-25 14:22:31 +01:00
Oliver Gugger
842669dd3a travis+github: move from Travis to GitHub Actions 2022-03-25 14:22:29 +01:00
Oliver Gugger
42b9d4c1be Merge pull request #72 from lightninglabs/btcec-v2-upgrade
multi: bump btcec/v2 and btcutil to new versions
2022-03-25 10:39:43 +01:00
positiveblue
2c3cb8c9f7 multi: bump btcec/v2 and btcutil to new versions 2022-03-25 10:30:54 +01:00
Oliver Gugger
7a8449f1bd Merge pull request #70 from ellemouton/fixTestNilPointer
aperture: add prometheus config nil check
2022-02-14 10:43:21 +01:00
Elle Mouton
559d2b3b97 aperture: add NewConfig function
Add a NewConfig func so that all pointer variables in the config object
can be initialised so that we can avoid needing to do nil checks
everywhere.
2022-02-14 09:37:41 +00:00
Oliver Gugger
3f36447006 Merge pull request #69 from ellemouton/mailboxMetrics
multi: mailbox metrics
v0.1.17-beta
2022-02-10 10:24:30 +01:00
Elle Mouton
32842116d6 aperture: export hashmail grpc metrics to prometheus 2022-02-10 09:44:30 +02:00
Elle Mouton
6c0d9866e6 multi: record the number of active mailboxes 2022-02-10 09:41:40 +02:00
Elle Mouton
9362f2325f multi: extract prometheus config and exporter
In this commit, the prometheus config is extracted from the hashmail
config so that it can be used more generally.
2022-02-10 09:41:35 +02:00
Oliver Gugger
5d26f3fa99 Merge pull request #68 from ellemouton/hashmailKeepalivePing
aperture: hashmail keepalive enforcement policy
v0.1.16-beta
2022-02-08 11:57:05 +01:00
Elle Mouton
ffeafa4d2e aperture: hashmail keepalive enforcement policy
Lower the MinTime frequency that the client is allowed to send pings to
1 min instead of the default of 5 mins.
2022-02-08 12:07:26 +02:00