Timestamp Inherent#100
Merged
Merged
Conversation
added 22 commits
September 27, 2023 08:28
…ts into the block. Let's dig deeper.
…ore we merge this PR.
Now nodes can import one block before the authoring node unpeers with them.
… because of this inherent stuff.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
added 4 commits
September 28, 2023 22:38
…trate's network module
This has nothing to do with the `StateVersion` enum.
They don't fully make sense yet because I haven't expanded the storage to differentiate best time from any other noted time. That will be next.
muraca
reviewed
Oct 13, 2023
muraca
left a comment
Collaborator
There was a problem hiding this comment.
New changes with single-output design are generally good, let's wait for the tests to see if I missed anything
| /// as check the verifier information in some unique way. | ||
| /// This full ConstraintChecker should only be implemented if the piece logic cannot be expressed with | ||
| /// the SimpleConstraintChecker. For example, if you need to enforce the verifier is a particular type | ||
| /// or contains a certain value. Another reason would be if you need to implement an inherent. |
Collaborator
There was a problem hiding this comment.
I was thinking maybe we could add an InherentConstraintChecker trait instead.
Contributor
Author
There was a problem hiding this comment.
Yeah. This is a good idea. It would simplify a lot of things. This is roughly what I had in mind when I put (Deferred to followup) Rework relationship between constraint checkers and inherent hooks. as one of the checklist items in the PR description.
coax1d
requested changes
Oct 13, 2023
coax1d
left a comment
Contributor
There was a problem hiding this comment.
This was a big one but nice job figuring out how to do this!
Signed-off-by: muraca <mmuraca247@gmail.com>
Signed-off-by: muraca <mmuraca247@gmail.com>
Signed-off-by: muraca <mmuraca247@gmail.com>
JoshOrndorff
commented
Oct 13, 2023
Signed-off-by: muraca <mmuraca247@gmail.com>
5 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #90
This main purpose of this PR is to blaze a path for how inherents can be used in Tuxedo.
As a concrete starting point we introduce the timestamp inherent which is ubiquitous in FRAME runtimes.
SetTimestampforbidden in pool (so it must be inherent)Deferred until Accumulators for intra-block book-keeping #105 lands) Ensure exactly one time stamp per block.GenesisBlockBuilder#107 is implemented) Remove the special case for initializing timestamp in the first block.