-
Notifications
You must be signed in to change notification settings - Fork 40
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
refactor: CDS logs #383
refactor: CDS logs #383
Conversation
app/upgrade_v_11_4_network_config.go
Outdated
@@ -265,6 +268,7 @@ var NetworkInfos = map[string]NetworkConfig{ | |||
} | |||
|
|||
type NetworkConfig struct { | |||
ChainID string `json:"chain_id"` |
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.
ChainID string `json:"chain_id"` | |
MergeSourceChainID string `json:"merge_source_chain_id"` | |
DestinationChainID string `json:"destination_chain_id"```` |
app/app.go
Outdated
if networkInfo.ChainID != ctx.ChainID() { | ||
return nil, fmt.Errorf("source file chain id %s and current node chain id %s is different", networkInfo.ChainID, ctx.ChainID()) | ||
} |
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.
if networkInfo.ChainID != ctx.ChainID() { | |
return nil, fmt.Errorf("source file chain id %s and current node chain id %s is different", networkInfo.ChainID, ctx.ChainID()) | |
} | |
if networkInfo.MergeSourceChainID != mergeSourceGenesisDoc.ChainID { | |
return nil, fmt.Errorf("source file chain id %s and current node chain id %s is different", networkInfo.MergeSourceChainID, mergeSourceGenesisDoc.ChainID) | |
} | |
if networkInfo.DestinationChainID != ctx.ChainID() { | |
return nil, fmt.Errorf("source file chain id %s and current node chain id %s is different", networkInfo.DestinationChainID, ctx.ChainID()) | |
} |
See my previous post .
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.
LGTM
Proposed Changes
[describe the changes here...]
Linked Issues
[if applicable, add links to issues resolved by this PR]
Types of changes
What type of change does this pull request make (put an
x
in the boxes that apply)?Checklist
Put an
x
in the boxes that apply:If applicable
Further comments
[if this is a relatively large or complex change, kick off a discussion by explaining why you chose the solution you did, what alternatives you considered, etc...]