-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER; | ||
|
||
fn create_inherent(data: &InherentData) -> Option<Self::Call> { | ||
if let Ok(final_num) = data.finalized_number() { |
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.
It should be fine to remove the inherent provider right away since the runtime module already expects that inherent data about finalized number might not be available.
Found an issue during burnin, needs some changes. |
What issues? I was actually wondering what issue could possibly arise from removal of a pallet that you did a burnin. |
@kianenigma Since other nodes are still adding the inherent data the node will fail to decode those inherents that come in the block.
Still not sure about what to do since for historical blocks these inherents will always exist. |
Wait. That means you don't have bumped the |
I guess historical blocks will be fine because a historical runtime will also have this pallet? The problem seem more like that this PR is kinda hard to burn-in in the public, because of what you said: other nodes will produce blocks with the inherent while your node will reject. |
Yeah, I'm an idiot 🤦. @kianenigma disregard what I said. |
Burn-in done, no issues found. |
bot merge |
Trying merge. |
The initial idea was to use the
finality-tracker
module to automatically trigger GRANDPA's offline fallback. Due to efficiency concerns the module currently only allows tracking finality over short periods (e.g. last 100 blocks), which is too little to act automatically on. Furthermore, we recently added #6725 which instead allows us to trigger GRANDPA's offline fallback manually through governance which is a lot safer (and preferred). Removing this as suggested in #6725 (comment).polkadot companion: paritytech/polkadot#1762