Skip to content

Refactor PoAHeaderSignatureRule#890

Merged
fassadlr merged 15 commits intostratisproject:release/1.2.1.0from
quantumagi:rewritesigrule2
Feb 17, 2022
Merged

Refactor PoAHeaderSignatureRule#890
fassadlr merged 15 commits intostratisproject:release/1.2.1.0from
quantumagi:rewritesigrule2

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Feb 15, 2022

The idea with this PR is to leverage GetMiningTimestamp in the PoAHeaderSignatureRule to guarantee consistency between generating and verifying timestamps.

The code adapts GetMiningTimestamp to work for nodes other than just the current node. It can then be used in PoAHeaderSignatureRule to check that the other nodes are mining at the appropriate times.

@quantumagi quantumagi requested a review from fassadlr February 15, 2022 09:48
@quantumagi
Copy link
Contributor Author

Will do some resync testing to ensure that there are no regression issues.

Copy link
Contributor

@fassadlr fassadlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge when testing is done. I will add my testing feedback here :)

@fassadlr fassadlr merged commit bb253cc into stratisproject:release/1.2.1.0 Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants