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

New Recipe: Manual Select Chain #428

Open
JoshOrndorff opened this issue Apr 14, 2021 · 0 comments
Open

New Recipe: Manual Select Chain #428

JoshOrndorff opened this issue Apr 14, 2021 · 0 comments

Comments

@JoshOrndorff
Copy link
Owner

JoshOrndorff commented Apr 14, 2021

The best chain is chosen by a "select chain rule" https://substrate.dev/rustdocs/v3.0.0/sp_consensus/trait.SelectChain.html . The most common implementation, and the one used in all current recipes nodes, is the standard "longest chain rule" https://substrate.dev/rustdocs/v3.0.0/sc_consensus/struct.LongestChain.html.

We could (and I would love to) impl SelectChain for ManualSelectChain which gets wired back to the RPC to be controlled manually by the user just like manual seal.

cc @girazoki

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

No branches or pull requests

1 participant