Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: add chiado #4530

Closed
wants to merge 11 commits into from

Conversation

filoozom
Copy link
Contributor

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?

@paulhauner paulhauner added the ready-for-review The code is ready for review label Jul 26, 2023
@paulhauner paulhauner changed the base branch from stable to unstable July 26, 2023 09:04
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I'm happy to merge.

IMO, the biggest cost here is adding ~0.5mb to our Git history (genesis.ssz.zip) and ~3mb to our binary size (genesis.szz). The size of the binary will increase by less than 3%, which I think is manageable.

We could implement in-binary compression for the genesis states if we become particularly concerned about binary size.

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review ready-for-merge This PR is ready to merge. labels Aug 2, 2023
@paulhauner
Copy link
Member

Looks like we're failing CI sorry:

 ---- tests::hard_coded_nets_work stdout ----
thread 'tests::hard_coded_nets_work' panicked at 'called `Result::unwrap()` on an `Err` value: "YAML configuration incompatible with spec constants for mainnet"', common/eth2_network_config/src/lib.rs:283:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@filoozom
Copy link
Contributor Author

filoozom commented Aug 4, 2023

I'm sorry, I don't really understand how / why this is happening. I get that the presets aren't compatible (that's by design), but the Gnosis mainnet one uses the same exact ones, and I'm not changing anything specific here.

@paulhauner
Copy link
Member

I'm sorry, I don't really understand how / why this is happening. I get that the presets aren't compatible (that's by design), but the Gnosis mainnet one uses the same exact ones, and I'm not changing anything specific here.

No worries, I think I found it. I would have made a code suggestion, but Github wouldn't allow me so I just pushed a commit with the fix: b35c1dc

@filoozom
Copy link
Contributor Author

Hi, are we still waiting for anything regarding this? 🙂

@paulhauner paulhauner self-assigned this Aug 29, 2023
@paulhauner
Copy link
Member

I've made some changes to get this across the line for our v4.4.0 release (testing has already started!)

Firstly, I had to remove four ENRs because they were causing Invalid base64 encoding: InvalidPadding. See a4f8d44.

Secondly, I removed the genesis.ssz.zip file so that it can be downloaded via a checkpoint-sync server (as per #4653). Users won't notice anything when doing a checkpoint sync, however if they want to sync from genesis they'll need the --genesis-state-url flag. For example:

lighthouse bn --network chiado --genesis-state-url https://checkpoint.chiado.gnosis.gateway.fm

Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot pushed a commit that referenced this pull request Aug 29, 2023
## 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 <[email protected]>
@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Aug 29, 2023
@bors
Copy link

bors bot commented Aug 29, 2023

@bors bors bot changed the title feat: add chiado [Merged by Bors] - feat: add chiado Aug 29, 2023
@bors bors bot closed this Aug 29, 2023
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
## 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 <[email protected]>
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
## 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants