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

Update to beyond alpha.7 #244

Closed
wants to merge 77 commits into from
Closed

Update to beyond alpha.7 #244

wants to merge 77 commits into from

Conversation

JoshOrndorff
Copy link
Owner

@JoshOrndorff JoshOrndorff commented May 11, 2020

This WIP PR updates the recipes to beyond alpha.7. It replaces #242

In Substrate's alpha.7 release, the instant- and manual-seal consensus engines are completely broken. That issue is fixed in Substrate in paritytech/substrate#5955 . Because the recipes critically depends on instant- and manual-seal, the recipes will skip the alpha.7 release. That means that this PR also reverts crates.io dependencies to git dependencies :shudder:.

TODO:

  • Review weights pallet for some minimal level of conformity to the new weight standards
  • Review weights writeup
  • Make all nodes compile
  • Make all light clients compile
  • Make offchain demo tests compile (@jimmychu0807)
  • Merge in hybrid consensus PR
  • Merge in babe-grandpa node writeup?

JoshOrndorff and others added 30 commits April 22, 2020 20:57
Co-authored-by: David <dvdplm@gmail.com>
@JoshOrndorff JoshOrndorff changed the title Update to alpha.7 Update to beyond alpha.7 May 11, 2020
@JoshOrndorff JoshOrndorff mentioned this pull request May 12, 2020
Comment on lines 58 to 85
use sp_runtime::{
app_crypto::{app_crypto, sr25519},
MultiSigner, MultiSignature,
traits::Verify,
};
use sp_core::sr25519::Signature as Sr25519Signature;

app_crypto!(sr25519, KEY_TYPE);

pub struct TestAuthId;
// implemented for ocw-runtime
impl frame_system::offchain::AppCrypto<MultiSigner, MultiSignature> for TestAuthId
{
type RuntimeAppPublic = Public;
type GenericSignature = sp_core::sr25519::Signature;
type GenericPublic = sp_core::sr25519::Public;
}

// implemented for mock runtime in test
impl frame_system::offchain::AppCrypto<<Sr25519Signature as Verify>::Signer, Sr25519Signature> for TestAuthId
{
type RuntimeAppPublic = Public;
type GenericSignature = sp_core::sr25519::Signature;
type GenericPublic = sp_core::sr25519::Public;
}
}

// Specifying serde path as `alt_serde`

Choose a reason for hiding this comment

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

There is maybe some ticket system like JIRA or just you are using Issues from Github? I ask because I am curious where/how I find the description of the PR.

Copy link
Owner Author

Choose a reason for hiding this comment

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

The description is at the top of this page. This particular PR is a weird one though. It contains a lot of changes from the base branch because this repo (the recipes) is in the process of adopting gitflow to manage PRs

@JoshOrndorff
Copy link
Owner Author

Based on the trouble I had here and in #242, we've decided to manage the recipes repo using gitflow.

This branch will never be directly merged into master. Rather, once Substrate alpha.8 is released, a release-prep branch will be created and it will eventually be merged into master.

@JoshOrndorff JoshOrndorff deleted the alpha.7 branch May 14, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants