Skip to content

Commit

Permalink
Fix inherent data hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTulp committed Oct 19, 2023
1 parent 3db8599 commit 4387a5c
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 4387a5c

Please sign in to comment.