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

add manta config #640

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions configs/manta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
endpoint: wss://ws.manta.systems
mock-signature-host: true
block: ${env.MANTA_BLOCK_NUMBER}
db: ./db.sqlite

import-storage:
Sudo:
Key: dfbMFtQXqiKHH4d2y4CFcVQCpopqKcaEiYv2DCUpVCphoz8kB
System:
Account:
-
-
- dfbMFtQXqiKHH4d2y4CFcVQCpopqKcaEiYv2DCUpVCphoz8kB
- data:
free: 1000000000000000
ParachainStaking:
# NOTE: MANTA_BLOCK_NUMBER should set to 2170792 in .env file.
Copy link
Collaborator

@ermalkaleci ermalkaleci Jan 23, 2024

Choose a reason for hiding this comment

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

This config is not useful if users have to manually change it. Configs in this repo are meant to start the fork without any additional work, just chopsticks -c acala and it use the predefined config. This config should work for any block otherwise I think it's best to guide your users how to do a proper setup

Copy link
Collaborator

Choose a reason for hiding this comment

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

see if you can find a way to cheat nimbus

Copy link
Member

Choose a reason for hiding this comment

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

if this config only works for a block number, then we should just hardcoded the block number here

Copy link
Collaborator

Choose a reason for hiding this comment

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

I tried but it will build a few blocks then fail when nimbus rotates author

# If you change the block number, you need to also change here.
# The value should be `authorInherent.author` storage correspond to your block number.
SelectedCandidates: [dfbE3LfJAvdnNWBQmNv9bBUW3ieAjwijWZYRXx26uK3o2gTJZ]