Commit Graph

5252 Commits

Author SHA1 Message Date
chonghe
3905329ae5 Remove help-cli.md and rearrange 2023-10-03 18:46:55 +08:00
chonghe
bc19fc32cc Update Makefile
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:38:27 +08:00
chonghe
081405abd1 Update Makefile
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:33:49 +08:00
chonghe
5b57696b17 test 2023-09-16 11:31:49 +08:00
chonghe
07ce759bcf test 2023-09-16 11:03:59 +08:00
chonghe
c2ed1c4dc3 add summary.md 2023-09-15 23:28:07 +08:00
chonghe
7cd6a18ae9 update 2023-09-15 23:20:02 +08:00
chonghe
4e4ec7e71b remove troubleshooting part 2023-09-15 23:16:57 +08:00
chonghe
27d1fb034d revise 2023-09-15 22:03:53 +08:00
chonghe
cb71c7580a add exist and update for future debug 2023-09-15 22:03:36 +08:00
chonghe
ab2574ccdf change back non-debug mode 2023-09-15 21:41:25 +08:00
chonghe
314745a094 add vm 2023-09-15 21:18:31 +08:00
chonghe
d8623cb696 test 2023-09-15 20:57:49 +08:00
chonghe
5a5bbe7b39 Merge pull request #3 from chong-he/unstable
Merge Unstable
2023-09-15 20:38:31 +08:00
chonghe
9091ebdd4c test 2023-09-15 20:02:05 +08:00
chonghe
0c1ad4008d update 2023-09-15 19:41:06 +08:00
chonghe
08eb570505 update 2023-09-15 18:35:17 +08:00
chonghe
34a149a207 Merge branch 'sigp:stable' into book-cli 2023-09-15 18:11:04 +08:00
João Oliveira
d386a07b0c validator client: start http api before genesis (#4714)
## Issue Addressed

On a new network a user might require importing validators before waiting until genesis has occurred.

## Proposed Changes

Starts the validator client http api before waiting for genesis 

## Additional Info

cc @antondlr
quic-test
2023-09-15 10:08:30 +00:00
chonghe
1aaca5b46c testing 2023-09-15 17:39:52 +08:00
chonghe
09f81a4dd2 testing 2023-09-15 17:12:21 +08:00
Jimmy Chen
b88e57c989 Update Java runtime requirement to 17 for Web3Signer tests (#4681)
Web3Signer now requires Java runtime v17, see [v23.8.0 release](https://github.com/Consensys/web3signer/releases/tag/23.8.0).

We have some Web3Signer tests that requires a compatible Java runtime to be installed on dev machines. This PR updates `setup` documentation in Lighthouse book, and also fixes a small typo.
2023-09-15 08:49:14 +00:00
chonghe
f1c2b542fc test 2023-09-15 16:20:11 +08:00
chonghe
a16c586c09 test make cli 2023-09-15 15:56:56 +08:00
Age Manning
e4ed317b76 Add Experimental QUIC support (#4577)
## Issue Addressed

#4402 

## Proposed Changes

This PR adds QUIC support to Lighthouse. As this is not officially spec'd this will only work between lighthouse <-> lighthouse connections. We attempt a QUIC connection (if the node advertises it) and if it fails we fallback to TCP. 

This should be a backwards compatible modification. We want to test this functionality on live networks to observe any improvements in bandwidth/latency.

NOTE: This also removes the websockets transport as I believe no one is really using it. It should be mentioned in our release however.


Co-authored-by: João Oliveira <hello@jxs.pt>
2023-09-15 03:07:24 +00:00
chonghe
971bee38d1 remove vm.md 2023-09-15 09:39:32 +08:00
chonghe
7f2f9d1345 function 2023-09-15 09:38:10 +08:00
Jack McPherson
35f47f454f Await listening address from libp2p in RPC tests setup (#4705)
## Issue Addressed

#4704 

## Proposed Changes

 - Receive multiaddr from libp2p by awaiting listener setup

## Additional Info

See also: #4675
2023-09-11 06:14:56 +00:00
chonghe
ed31b6b077 comment 2023-09-06 16:39:52 +08:00
chonghe
a180809238 Revise cli.sh 2023-09-06 16:39:03 +08:00
Jimmy Chen
1ff4033830 Remove Node.js from release-tests CI job since we no longer use ganache (#4691)
## Issue Addressed

I noticed a node.js version warning on our CI, and thought about updating the version to get rid of this warning, but then realized we may not need node.js anymore now we're using `anvil` instead of `ganache`.

> The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
2023-09-06 04:37:05 +00:00
Ricki Moore
0caf2af771 Feat: siren faq update (#4685)
## Issue Addressed

Siren FAQ requires more information regarding network connections to lighthouse BN/VC

## Proposed Changes

Added more info regarding port, BN/VC flags, ssh tunneling and VPNs access
2023-09-06 04:37:04 +00:00
Daichuan Wu
48e2b205e8 Fix some typos in "Advanced Networking" documentation (#4672)
## Issue Addressed
N/A

## Proposed Changes
The current Advanced Networking page references the ["--listen-addresses"](14924dbc95/book/src/advanced_networking.md (L124C8-L124C8)) argument, which does not exist in the beacon node. This PR changes such instances of "--listen-addresses" to "--listen-address".

Additionally, the page mentions using sockets that [both listen to IPv6](14924dbc95/book/src/advanced_networking.md (L151)) in a dual-stack setup? Hence, this PR also changes said line to "using one socket for IPv4 and another socket for IPv6".

## Additional Info
None.
2023-09-06 04:37:03 +00:00
chonghe
291ff640f1 Minor revision to Lighthouse Book on validator-manager (#4638)
Correct the formatting and remove `http-port 5062` to make the command simpler

Co-authored-by: chonghe <44791194+chong-he@users.noreply.github.com>
2023-09-06 04:37:02 +00:00
chonghe
996571362b put a dummy file 2023-09-06 12:15:24 +08:00
chonghe
db4dc09448 remove dummy 2023-09-06 12:13:56 +08:00
chonghe
0f7e77aaaa Create new cli folder 2023-09-06 12:13:15 +08:00
chonghe
51b7de4717 Fixed permission 2023-09-06 11:33:07 +08:00
chonghe
fb6f3537bb Indentation and revision 2023-09-06 11:28:59 +08:00
chonghe
99c0049ca5 fix permission 2023-09-06 11:04:39 +08:00
chonghe
cb22bd3c5f remove files 2023-09-05 22:46:09 +08:00
chonghe
c3d1bf3719 Move cli.sh 2023-09-05 21:11:31 +08:00
chonghe
4f111a2e51 Update cli and makefile 2023-09-05 21:01:05 +08:00
Michael Sproul
2841f60686 Release v4.4.1 (#4690)
## Proposed Changes

New release to replace the cancelled v4.4.0 release.

This release includes the bugfix #4687 which avoids a deadlock that was present in v4.4.0.

## Additional Info

Awaiting testing over the weekend this will be merged Monday September 4th.
v4.4.1
2023-09-04 02:56:52 +00:00
Michael Sproul
74eb267643 Remove double-locking deadlock from HTTP API (#4687)
## Issue Addressed

Fix a deadlock introduced in #4236 which was caught during the v4.4.0 release testing cycle (with thanks to @paulhauner and `gdb`).

## Proposed Changes

Avoid re-locking the fork choice read lock when querying a state by root in the HTTP API. This avoids a deadlock due to the lock already being held.

## Additional Info

The [RwLock docs](https://docs.rs/lock_api/latest/lock_api/struct.RwLock.html#method.read) explicitly advise against re-locking:

> Note that attempts to recursively acquire a read lock on a RwLock when the current thread already holds one may result in a deadlock.
2023-08-31 11:18:00 +00:00
Paul Hauner
e99ba3a14e Release v4.4.0 (#4673)
## Issue Addressed

NA

## Proposed Changes

Bump versions from `v4.3.0` to `v4.4.0`.

## Additional Info

NA
v4.4.0
2023-08-31 02:12:35 +00:00
chonghe
2d1325c6a1 change exit 1 2023-08-30 21:52:35 +08:00
Jimmy Chen
41ac9b6a08 Pin foundry toolchain version to fix stuck CI jobs 2023-08-30 21:41:35 +10:00
Philippe Schommers
0c23c86849 feat: add chiado (#4530)
## Issue Addressed

N/A

## Proposed Changes

Adds the Chiado (Gnosis testnet) network to the builtin one.

## Additional Info

It's a fairly trivial change all things considered as the preset already exists, so shouldn't be hard to maintain.

It compiles and seems to work, but I'm sure I missed something?

Co-authored-by: Paul Hauner <paul@paulhauner.com>
2023-08-29 05:56:30 +00:00
Michael Sproul
f284e0e264 Fix bug in block root storage (#4663)
## Issue Addressed

Fix a bug in the storage of the linear block roots array in the freezer DB. Previously this array was always written as part of state storage (or block backfill). With state pruning enabled by #4610, these states were no longer being written and as a result neither were the block roots.

The impact is quite low, we would just log an error when trying to forwards-iterate the block roots, which for validating nodes only happens when they try to look up blocks for peers:

> Aug 25 03:42:36.980 ERRO Missing chunk in forwards iterator      chunk index: 49726, service: freezer_db

Any node checkpoint synced off `unstable` is affected and has a corrupt database. If you see the log above, you need to re-sync with the fix. Nodes that haven't checkpoint synced recently should _not_ be corrupted, even if they ran the buggy version.

## Proposed Changes

- Use a `ChunkWriter` to write the block roots when states are not being stored.
- Tweak the usage of `get_latest_restore_point` so that it doesn't return a nonsense value when state pruning is enabled.
- Tweak the guarantee on the block roots array so that block roots are assumed available up to the split slot (exclusive). This is a bit nicer than relying on anything to do with the latest restore point, which is a nonsensical concept when there aren't any restore points.

## Additional Info

I'm looking forward to deleting the chunked vector code for good when we merge tree-states 😁
2023-08-28 05:34:28 +00:00