-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
…abbing authorities fro mthe runtime.
Co-authored-by: David <dvdplm@gmail.com>
pallets/offchain-demo/src/lib.rs
Outdated
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` |
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.
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.
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.
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
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: