Commit Graph

11275 Commits

Author SHA1 Message Date
caac0e6347 build: update CI builds to use go 1.15.7 2021-02-03 16:51:40 -08:00
1c407f4026 htlcswitch: reestablish unit tests 2021-02-03 16:47:47 -05:00
9b09895bde channeldb+lnwallet: lastWasRevokeKey to store last sent rev/sig 2021-02-03 16:43:04 -05:00
7f006832fb Merge pull request #4934 from cfromknecht/pinned-active-syncers
discovery: pinned syncers
2021-02-03 10:54:00 -08:00
1a9fd09c01 Merge pull request #4978 from bhandras/addinvoice_crash
invoices+rpc: add missing channel graph to the AddInvoiceConfig
2021-02-03 11:46:14 +01:00
dde5750160 invoices+rpc: add missing channel graph to the AddInvoiceConfig
The Graph which is referenced later in the AddInvoice call graph is
unset when adding a hodl invoice. This resulted in a crash.
2021-02-03 11:33:27 +01:00
814b81bd25 Merge pull request #4902 from Crypt-iQ/lntestchannels_01072021
lntest/channels: introduce subpackage to deduplicate static structs
2021-02-01 14:12:08 -08:00
ff9165070a Merge pull request #4974 from bolatovumar/fix/typo-manged
Fix typo in restorechanbackup command description
2021-02-01 10:22:39 -08:00
faddf98391 gen_protos_docker: make image build non-quiet
This allows users to see progress whenever the docker image is
[re]built, and (esp on non-linux hosts) track the size of the build
context being uploaded. Currently no output is displayed, so it's hard
to attribute the source of latency, e.g. network latency, building
layers, a large work directory, etc.
2021-02-01 10:11:09 -08:00
315f97ffd5 Merge pull request #4911 from guggero/docker-rpc-compile
lnrpc+mobile: use docker to compile/format protos
2021-02-01 13:42:42 +01:00
4dc5cb5a3a Fix typo in restorechanbackup command description 2021-01-31 17:37:27 -08:00
bd1c5378bf Merge pull request #4919 from joostjager/getnodeinfo-notfound
rpcserver: use NotFound http status code in GetNodeInfo
2021-01-31 09:43:33 -08:00
227fd45da2 lntest: fix linter errors 2021-01-29 01:37:37 -08:00
b1fee734ec discovery/sync_manager: remove unneeded markGraphSyncing
AFAICT it's not possible to flip back from bein synced_to_chain, so we
remove the underlying call that could reflect this. The method is moved
into the test file since it's still used to test correctness of other
portions of the flow.
2021-01-29 00:19:48 -08:00
e42301dee2 lntest: call markGraphSynced from gossipSyncer
Rather than performing this call in the SyncManager, we give each
gossipSyncer the ability to mark the first sync completed. This permits
pinned syncers to contribute towards the rpc-level synced_to_graph
value, allowing the value to be true after the first pinned syncer or
regular syncer complets. Unlinke regular syncers, pinned syncers can
proceed in parallel possibly decreasing the waiting time if consumers
rely on this field before proceeding to load their application.
2021-01-29 00:19:48 -08:00
920eda26fc lntest/graph_top: test pinned syncers 2021-01-29 00:19:48 -08:00
ba67f3ecaa lntest/graph_top: remove dependence on net.Alice/Bob 2021-01-29 00:19:47 -08:00
fcd5cb625a config: expose gossip.pinned-syncers for conf
The pinned syncer set is exposed as a comma-separated list of pubkeys.
2021-01-29 00:19:47 -08:00
2371fc5a8e lnrpc: expose PINNED_SYNC for listpeers 2021-01-29 00:19:47 -08:00
340414356d discovery: perform initial historical sync for pinned peers 2021-01-29 00:19:47 -08:00
2f0d56d539 discovery: add support for PinnedSyncers
A pinned syncer is an ActiveSyncer that is configured to always remain
active for the lifetime of the connection. Pinned syncers do not count
towards the total NumActiveSyncer count, which are rotated periodically.

This features allows nodes to more tightly synchronize their routing
tables by ensuring they are always receiving gossip from distinguished
subset of peers.
2021-01-29 00:19:47 -08:00
9e932f2a64 discovery/sync_manager: Pause/Resume HistoricalSyncTicker
This gives each initial historical syncer an equal amount of time before
being rotated, even if some fail.
2021-01-29 00:19:47 -08:00
ef0cd82c1f discovery/sync_manager: make setHistoricalSyncer closure 2021-01-29 00:19:46 -08:00
72fbd1283b discovery/sync_manager: break out IsGraphSynced check 2021-01-29 00:19:46 -08:00
7c6aa20bd8 discovery: handle err for linter 2021-01-29 00:19:46 -08:00
10a81e01e3 Merge pull request #2162 from halseth/make-goimports
[Makefile] Define `make imports`
2021-01-29 08:54:00 +01:00
688a8045f0 Merge pull request #4963 from guggero/verify-no-key-fix
scripts: don't fail signature verification on missing public key
2021-01-28 14:52:22 +01:00
aff1a0334e ci: check mobile compilation in same step as RPC
Because we now build a docker image for the RPC compilation, we can save
some execution minutes if we run the mobile RPC and code compilation check in the
same step of the CI workflow.
2021-01-28 10:29:02 +01:00
3bcfe931f9 make+lnrpc: compile mobile RPC with docker too
Now that we have a base docker image that has all our RPC compilation
dependencies installed, we can also run the mobile RPC compilation
there. This removes the need to install falafel and goimports on the
local machine.
2021-01-28 10:29:02 +01:00
19f7670a5b mobile: remove grpc-gateway import
Because we compile the REST code from the rest-annotations.yaml and no
longer import the annotations in the proto files, we don't need to
specify the custom import path anymore.
2021-01-28 10:29:02 +01:00
9c6e208797 multi: remove proto install script 2021-01-28 10:29:01 +01:00
e9a0f36786 make+lnrpc: use docker to compile protos
This commit aims to make it easier for developers to compile our
protobuf definitions. They now only need to have docker installed
instead of a whole set of binaries and libraries all pinned to very
specific versions.
2021-01-28 10:27:09 +01:00
91364056f7 Merge pull request #4952 from guggero/gh-actions
GitHub: use vendored actions for steps with sensitive info
2021-01-28 10:12:58 +01:00
626e732f9b Merge pull request #4956 from joostjager/htlc-attempt-id
lnrpc: add htlc attempt id
2021-01-27 17:01:08 -08:00
9614626e2e Merge pull request #4944 from xplorfin/clang-format-mac
docs: Add clang-format instructions for mac
2021-01-27 17:00:53 -08:00
8911a18b89 Merge pull request #4938 from motorina0/issue_4937
docker: add an extra listener for localhost
2021-01-27 16:58:46 -08:00
85f4d2b188 Merge pull request #4962 from halseth/halseth-gpg-key
scripts: add halseth key to verify script
2021-01-27 16:29:34 -08:00
02aa540b04 Merge pull request #4958 from halseth/netann-unknown-update
netann: ignore unknown channel update on startup
2021-01-27 16:27:15 -08:00
d10d1cbd86 Merge pull request #4162 from cfromknecht/amp-keys
amp: introduce child preimage and hash derivation
2021-01-27 16:25:25 -08:00
734441d6c0 scripts: don't fail on missing public key
When verifying the release signatures, we don't want to fail if a
signer's signature is not available in the gpg key ring. Instead we just
don't want to count the signature for now and still succeed if there's
at least one other good sig with a known key.
2021-01-27 11:12:04 +01:00
991e077bf3 scripts: add halseth key to verify script 2021-01-27 10:43:32 +01:00
d176d2d65f build: bump version to v0.12.0-beta v0.12.0-beta 2021-01-26 17:31:07 -08:00
578b348a50 build: update Docker versions to Go 1.15.7
This updates the Docker files to the latest minor release of Go which
included some security fixes.
2021-01-26 17:29:10 -08:00
0ef04a749f amp/derivation_test: add tests 2021-01-26 12:43:09 -08:00
cb47d0c825 amp/sharer: add recursive sharing logic 2021-01-26 12:43:09 -08:00
0144bdb241 amp/child: add Child deriviation 2021-01-26 12:43:08 -08:00
3485a7874f netann: ignore unknown channel updat on startup
Since the funding manager might be in process of adding the edge to the
graph, we ignore the error.
2021-01-26 15:33:45 +01:00
f8b98a1d3b lntest/channels: introduce subpackage to deduplicate static structs 2021-01-25 14:04:39 -05:00
0ef0264d28 lnrpc: add htlc attempt id 2021-01-25 17:21:58 +01:00
1abf3e7847 GitHub: use vendored actions for steps with sensitive info
To avoid leaking any sensitive information like Docker Hub credentials
because of compromised actions repositories, we use our own, vendored
actions for all steps that potentially touch sensitive information.
2021-01-25 14:16:00 +01:00