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

feat: nullchain changes for snapshot-compatibility pipeline #8887

Merged
merged 10 commits into from
Aug 1, 2023

Conversation

daniel1302
Copy link
Contributor

@daniel1302 daniel1302 commented Jul 24, 2023

close vegaprotocol/devops-infra#1531 .

Changes

Vega code disables some functionalities when we use null chain it causes an inability to use genesis where We have the ERC20 tokens - this means We cannot use the mainnet genesis. A very similar situation was with some of the snapshot items. Vega loads snapshots differently when We want to use the null chain.

I have removed branches for the null chain and now the null chain should behave in the same way as tendermint.

Triggered runs:

Related PRs

@daniel1302 daniel1302 requested a review from a team as a code owner July 24, 2023 09:02
@daniel1302 daniel1302 marked this pull request as draft July 24, 2023 09:07
@daniel1302 daniel1302 force-pushed the null-chain-tunning branch 2 times, most recently from ef7eef9 to 520c6de Compare July 25, 2023 20:26
@daniel1302 daniel1302 changed the title Required: Null chain tunning feat: nullchain changes for snapshot-compatibility pipeline Jul 26, 2023
@daniel1302 daniel1302 force-pushed the null-chain-tunning branch 2 times, most recently from ab4bc94 to 3d54d13 Compare July 31, 2023 12:08
@daniel1302
Copy link
Contributor Author

@daniel1302 daniel1302 force-pushed the null-chain-tunning branch 2 times, most recently from 6e0cd7e to 2d5bb9e Compare July 31, 2023 14:47
}

var err error
n.ethClient, err = ethclient.Dial(n.ctx, n.conf.Ethereum)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking, but worth noting:
Before if a node set up as a validator, and forgot to populate n.conf.Ethereum.RPCEndpoint it would fail when it tried to dial and the error would be useful, but now I think we'll probably just randomly panic with a nil-pointer the first time the ethClient tries to be used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will not Dial when the n.conf.Ethereum.RPCEndpoint is empty.

@daniel1302 daniel1302 merged commit 503fa72 into develop Aug 1, 2023
@daniel1302 daniel1302 deleted the null-chain-tunning branch August 1, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants