Skip to content

[Cirrus] Don't cache next mining timestamp#843

Merged
quantumagi merged 3 commits intostratisproject:release/1.2.0.0from
quantumagi:dontcachetimestamp
Jan 11, 2022
Merged

[Cirrus] Don't cache next mining timestamp#843
quantumagi merged 3 commits intostratisproject:release/1.2.0.0from
quantumagi:dontcachetimestamp

Conversation

@quantumagi
Copy link
Contributor

No description provided.

@quantumagi quantumagi merged commit 8163ce1 into stratisproject:release/1.2.0.0 Jan 11, 2022
{
this.logger.LogWarning("This node is no longer a federation member!");

if (myTimestamp <= (timeNow + 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

Ohh I see that the +1 was removed here? Was that not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think its necessary. I imagine the reasoning was to start the mining of the block 1 second before the timestamp. However the 1 second value seems entirely arbitrary and just introduces inaccuracies when we already allow blocks to be a second or more late. None of this affects the actual timestamp value placed on the block.

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