Skip to content

Commit

Permalink
Merge pull request #2 from futureversecom/polkadot-v0.9.30-warped-fix
Browse files Browse the repository at this point in the history
Fix inherent data hopefully
  • Loading branch information
JasonTulp authored Oct 19, 2023
2 parents 3db8599 + 4387a5c commit 3a5e1d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion primitives/timestamp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ use codec::{Decode, Encode};
use sp_inherents::{InherentData, InherentIdentifier, IsFatalError};
use sp_std::time::Duration;

#[cfg(feature = "std")]
use log::trace;

/// The identifier for the `timestamp` inherent.
pub const INHERENT_IDENTIFIER: InherentIdentifier = *b"timstap0";

Expand Down Expand Up @@ -232,7 +235,7 @@ impl sp_inherents::InherentDataProvider for InherentDataProvider {
&self,
inherent_data: &mut InherentData,
) -> Result<(), sp_inherents::Error> {
let timestamp = self.timestamp;
let timestamp = self.timestamp.as_millis();
// TRN HOTFIX: mutate timestamp to make it revert back in time and have slots
// happen at 6x their speed from then until we have caught up with the present time.

Expand Down

0 comments on commit 3a5e1d4

Please sign in to comment.