Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Fix dev branch not syncing issue#31

Merged
asiniscalchi merged 1 commit intodevfrom
fix/sync-issue-dev
Jul 3, 2023
Merged

Fix dev branch not syncing issue#31
asiniscalchi merged 1 commit intodevfrom
fix/sync-issue-dev

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 3, 2023

Overview

The issue was the altered chain spec, the chain spec that was used to launch a fresh parachain was from v0.0.4-dev tag and from that commit to the latest there has been several changes to specs/arrakis.json. Due to that, when trying to sync with the remote node, local node was producing different genesis hash.

Another issue was that spec/arrakis.json was in plain format, when it should be raw. And chainType also should be Live instead of Local (although for a syncing node, it's not a big deal, but if we were to run a collator, Live chains need to insert keys, etc.)

In the future, we should always maintain the chain spec in raw format and make sure to never alter it, except when the chain was reset.

Test

To test this fixes the issue:

// checkout to this branch `fix/sync-issue-dev`

docker run -v $(pwd):/data freeverseio/laos-ownership-node:3132e53c232562764268175af39df70aa4540ed8 --chain data/specs/arrakis.json

this runs the latest binary with the new arrakis.json and you should be able to sync with the remote node.

closes #26

@ghost ghost self-assigned this Jul 3, 2023
@ghost ghost marked this pull request as ready for review July 3, 2023 09:01
@ghost ghost requested review from asiniscalchi, magecnion and tonimateos July 3, 2023 09:01
@asiniscalchi asiniscalchi merged commit 8090863 into dev Jul 3, 2023
@ghost ghost deleted the fix/sync-issue-dev branch July 25, 2023 06:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ownership node doesn't sync using dev branch

2 participants