Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chaincfg: fix deployment bit numbers #1718

Merged
merged 1 commit into from
May 11, 2021

Conversation

guggero
Copy link
Collaborator

@guggero guggero commented May 11, 2021

On signet all previous soft forks and also taproot are always activated,
meaning the version is always 0x20000000 for all blocks. To make sure
they activate properly in btcd we therefore need to use the correct
bit to mask the version.
This means that on any custom signet there would need to be 2016 blocks
mined before SegWit or Taproot can be used.

cc @wpaulino, @Roasbeef.

On signet all previous soft forks and also taproot are always activated,
meaning the version is always 0x20000000 for all blocks. To make sure
they activate properly in `btcd` we therefore need to use the correct
bit to mask the version.
This means that on any custom signet there would need to be 2016 blocks
mined before SegWit or Taproot can be used.
@guggero
Copy link
Collaborator Author

guggero commented May 11, 2021

Test failure seems to be a flake...

@jcvernaleo
Copy link
Member

I just forced it to rerun the tests. Let's see if that fixes it since I agree that it is probably a flake.

@guggero
Copy link
Collaborator Author

guggero commented May 11, 2021

Seems to have fixed it, thank you!

@coveralls
Copy link

coveralls commented May 11, 2021

Pull Request Test Coverage Report for Build 831651207

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 11 unchanged lines in 2 files lost coverage.
  • Overall coverage remained the same at 52.915%

Files with Coverage Reduction New Missed Lines %
connmgr/connmanager.go 2 86.07%
peer/peer.go 9 76.1%
Totals Coverage Status
Change from base Build 818483772: 0.0%
Covered Lines: 21024
Relevant Lines: 39732

💛 - Coveralls

@jcvernaleo jcvernaleo self-assigned this May 11, 2021
@jcvernaleo jcvernaleo added this to the 0.22.0 milestone May 11, 2021
Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

@jcvernaleo jcvernaleo merged commit 7b6c2b3 into btcsuite:master May 11, 2021
@guggero guggero deleted the signet-deployment branch May 13, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants