-
Notifications
You must be signed in to change notification settings - Fork 1
Add ForkSpec into ClientState #52
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
Conversation
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds fork specification support to ClientState by introducing a new ForkSpec message and integrating a network-based fork rule system for localnet, testnet, and mainnet, intended for use after the Pascal HF.
- Introduces a ForkSpec protobuf message and integrates it into ClientState.
- Adds a Network field in configuration (including generated proto code) and updates validation accordingly.
- Adjusts test data and configuration to use the new fork specification logic.
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tool/testdata/internal/histroy.go | Moves import statements; consider renaming the file for clarity. |
| tool/testdata/internal/common.go | Adds a default network setting to ProverConfig. |
| tool/testdata/README.md | Updates documentation hints for localnet fixture usage. |
| proto/relayer/provers/parlia/config/config.proto | Adds the Network field to ProverConfig. |
| proto/ibc/lightclients/parlia/v1/parlia.proto | Introduces the ForkSpec message and adds fork_specs to ClientState. |
| module/prover_test.go | Updates Prover testing with a network setting for fork parameters. |
| module/prover.go | Integrates fork spec retrieval into initial state construction. |
| module/fork_spec.go | Adds fork parameter definitions for each network type. |
| module/config.pb.go | Reflects the configuration changes for the new Network field. |
| module/config.go | Validates the Network field against known networks. |
Files not reviewed (2)
- e2e/config/demo/ibc-0.json: Language not supported
- e2e/config/demo/ibc-1.json: Language not supported
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
NonStop from Pascal to Lorentz HF
Support msec timestamp and 500 epoch length in BEP520
Define fork rule per network (localnet, testnet, mainne).
Support only after Pascal HF.