Skip to content

Add collateral height checks to miner and rules#1073

Merged
fassadlr merged 8 commits intostratisproject:release/1.3.2.4from
quantumagi:collateralheightchecks2
Oct 12, 2022
Merged

Add collateral height checks to miner and rules#1073
fassadlr merged 8 commits intostratisproject:release/1.3.2.4from
quantumagi:collateralheightchecks2

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Oct 11, 2022

This PR does the following:

  1. When mining blocks it checks that the commitment height being encoded is greater or equal to the commitment height encoded for the preceding block.
  2. In the CheckCollateralCommitmentHeightRule rule it checks that the commitment height encoded for each block is greater or equal to the commitment height of the preceding block.
  3. Adds BIP9 activation for 2.

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.

PR looks good, just add a few small comments and possibly that unit test.

@fassadlr
Copy link
Contributor

PS does this test GatewayPairStarts pass locally?

@quantumagi
Copy link
Contributor Author

quantumagi commented Oct 12, 2022

PS does this test GatewayPairStarts pass locally?

No. This is why I suggested in slack that PR 1070 (it fixes PR 1061) be added to this branch:

https://stratisgroupworkspace.slack.com/archives/C9TGSJF0B/p1665475594037539

See PR #1074

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.

Looks good! Lets wait for CI 👍

@fassadlr fassadlr merged commit 7edbdec into stratisproject:release/1.3.2.4 Oct 12, 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