Skip to content

fix: vbavailable map in GetBlockTemplateResult #176

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

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

0xB10C
Copy link
Contributor

@0xB10C 0xB10C commented May 4, 2021

PR #163 implemented support for getblocktemplate. However, during the implementation the version_bits_available HashMap the map fields were switched.

This became apparent during testing against a v0.21.1 Bitcoin Core node, which includes support for the Taproot softfork via the 2nd version bit. Previously, no softfork was defined.

$ bitcoin-cli getblocktemplate "{\"rules\": [\"segwit\"]}"
...
  "vbavailable": {
    "taproot": 2
  },
...

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
PR rust-bitcoin#163 implemented support for getblocktemplate. However, during the
implementation the version_bits_available HashMap the map fields were
switched.

This became apparent during testing against a v0.21.1 Bitcoin
Core node, which includes support for the Taproot softfork via
the 2nd version bit. Previously, no softfork was defined.

```
$ bitcoin-cli getblocktemplate "{\"rules\": [\"segwit\"]}"
...
  "vbavailable": {
    "taproot": 2
  },
...

```
Copy link
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

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

utACK 1f5c57a

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

utACK 1f5c57a

@apoelstra apoelstra merged commit 72783dd into rust-bitcoin:master Nov 29, 2022
@0xB10C 0xB10C deleted the 2020-05-fix-vbavaliable-map branch November 29, 2022 14:55
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.

None yet

4 participants