Commit Graph

92 Commits

Author SHA1 Message Date
Tan Chee Keong
fe12ae2ce4 Add vm 2023-10-19 07:46:58 +08:00
Tan Chee Keong
2a7c65df47 Add set -e 2023-10-19 07:46:58 +08:00
chonghe
f340d22ff1 Add cargo-fmt 2023-10-19 07:46:57 +08:00
chonghe
fea0f81a0e Remove am and add vm subcommands 2023-10-19 07:46:57 +08:00
chonghe
6b39161c45 Edit exit message to avoid confusion 2023-10-19 07:46:57 +08:00
chonghe
404961b74f Add local variables 2023-10-19 07:46:57 +08:00
chonghe
1651f9871a Add logging when there are changes 2023-10-19 07:46:57 +08:00
chonghe
0c0843072f To be explicit in replacing the old file 2023-10-19 07:46:57 +08:00
chonghe
5e102ff5db Fix indent and echo file not found 2023-10-19 07:46:57 +08:00
chonghe
d78e8f47a1 move then to same line as if 2023-10-19 07:46:57 +08:00
chonghe
05ab3c5f9c remove maxperf 2023-10-19 07:46:57 +08:00
chonghe
3d7e27c504 Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-19 07:46:57 +08:00
chonghe
e2faed41c0 Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-19 07:46:57 +08:00
chonghe
12afd98258 update 2023-10-19 07:46:57 +08:00
chonghe
4feb11ccb0 remove troubleshooting part 2023-10-19 07:46:56 +08:00
chonghe
c8a396288e revise 2023-10-19 07:46:56 +08:00
chonghe
2f8b5a248e add exist and update for future debug 2023-10-19 07:46:56 +08:00
chonghe
1e0a04138d change back non-debug mode 2023-10-19 07:46:56 +08:00
chonghe
23221b131f add vm 2023-10-19 07:46:56 +08:00
chonghe
459002fc4a test 2023-10-19 07:46:56 +08:00
chonghe
ca46cec6e9 testing 2023-10-19 07:46:56 +08:00
chonghe
070d956d18 testing 2023-10-19 07:46:56 +08:00
chonghe
9db530610e test 2023-10-19 07:46:56 +08:00
chonghe
0a3a48bb0c test make cli 2023-10-19 07:46:56 +08:00
chonghe
46ea2cfa1b remove vm.md 2023-10-19 07:46:56 +08:00
chonghe
d05d94cbcf function 2023-10-19 07:46:56 +08:00
chonghe
3670fc7f2f comment 2023-10-19 07:46:56 +08:00
chonghe
c21a384fa7 Revise cli.sh 2023-10-19 07:46:56 +08:00
chonghe
1385907b2c Fixed permission 2023-10-19 07:46:56 +08:00
chonghe
e6a65cbeb2 Indentation and revision 2023-10-19 07:46:56 +08:00
chonghe
88eccf6cce remove files 2023-10-19 07:46:56 +08:00
chonghe
9d9316e479 Move cli.sh 2023-10-19 07:46:56 +08:00
chonghe
d46d43ccd2 Update cli and makefile 2023-10-19 07:46:55 +08:00
chonghe
0de2d89c1e change exit 1 2023-10-19 07:46:55 +08:00
chonghe
8d19bc2c26 test old cli_manual 2023-10-19 07:46:55 +08:00
chonghe
6f35ca4349 Correct cli.txt directory 2023-10-19 07:46:55 +08:00
chonghe
650ff79256 Update directory in Github 2023-10-19 07:46:55 +08:00
chonghe
5db9fc2108 Revise to update 2023-10-19 07:46:55 +08:00
chonghe
b65697260e cli_manual 2023-10-19 07:46:55 +08:00
chonghe
1ccc039b25 update cmd 2023-10-19 07:46:55 +08:00
Mac L
f935f221a2 Fix cli.sh permissions 2023-10-19 07:46:55 +08:00
chonghe
2b42e2568f modified test-suite 2023-10-19 07:46:55 +08:00
chonghe
f99c03fef7 update 2023-10-19 07:46:55 +08:00
chonghe
ef6f2c0732 update Makefile 2023-10-19 07:46:55 +08:00
chonghe
3700a60840 update bash script 2023-10-19 07:46:55 +08:00
chonghe
b3f803e13c Add cli.sh file 2023-10-19 07:46:55 +08:00
Jimmy Chen
fe3bd03234 Fix local testnet to generate keys in the correct folders (#4752)
Fix local testnet to generate keys in the correct folders when `BN_COUNT` and `VC_COUNT` don't match.

The current script place the generated validator keys in validator folders based on the `BN_COUNT` config, e.g. `node_1/validators`, `node_2/validators`..etc. We should be using `VC_COUNT` here instead, otherwise the number of validator clients may not match the number of directories generated, and would result in either:
1. a VC not having any keys  (when `BN_COUNT` < `VC_COUNT`)
2. a validator key directory not being used (when `BN_COUNT` > `VC_COUNT`).
2023-09-21 00:26:56 +00:00
chonghe
f9a3c00518 Update local testnet script (#4733)
There is an issue with the file `scripts/local_testnet/start_local_testnet.sh` - when we use a non-default `$SPEC-PRESET` in `vars.env` it runs into an error: 
```
executing: ./setup.sh >> /home/ck/.lighthouse/local-testnet/testnet/setup.log
parse error: Invalid numeric literal at line 1, column 7
```
@jimmygchen found the issue and the updated script includes the flag `--spec $SPEC-PRESET`
2023-09-21 00:26:55 +00: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
Divma
ff9b09d964 upgrade to libp2p 0.52 (#4431)
## Issue Addressed

Upgrade libp2p to v0.52

## Proposed Changes
- **Workflows**: remove installation of `protoc`
- **Book**: remove installation of `protoc`
- **`Dockerfile`s and `cross`**: remove custom base `Dockerfile` for cross since it's no longer needed. Remove `protoc` from remaining `Dockerfiles`s
- **Upgrade `discv5` to `v0.3.1`:** we have some cool stuff in there: no longer needs `protoc` and faster ip updates on cold start
- **Upgrade `prometheus` to `0.21.0`**, now it no longer needs encoding checks
- **things that look like refactors:** bunch of api types were renamed and need to be accessed in a different (clearer) way
- **Lighthouse network**
	- connection limits is now a behaviour
	- banned peers no longer exist on the swarm level, but at the behaviour level
	- `connection_event_buffer_size` now is handled per connection with a buffer size of 4
	- `mplex` is deprecated and was removed
	- rpc handler now logs the peer to which it belongs

## Additional Info

Tried to keep as much behaviour unchanged as possible. However, there is a great deal of improvements we can do _after_ this upgrade:
- Smart connection limits: Connection limits have been checked only based on numbers, we can now use information about the incoming peer to decide if we want it
- More powerful peer management: Dial attempts from other behaviours can be rejected early
- Incoming connections can be rejected early
- Banning can be returned exclusively to the peer management: We should not get connections to banned peers anymore making use of this
- TCP Nat updates: We might be able to take advantage of confirmed external addresses to check out tcp ports/ips


Co-authored-by: Age Manning <Age@AgeManning.com>
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com>
2023-08-02 00:59:34 +00:00