This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Commit 72783dd
committed
Merge #176: fix: vbavailable map in GetBlockTemplateResult
1f5c57a fix: version_bits_available maps String to u32 (0xb10c)
Pull request description:
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
},
...
```
ACKs for top commit:
sgeisler:
utACK 1f5c57a
tcharding:
utACK 1f5c57a
Tree-SHA512: ebae449b93ca8d428e8c0e6dcbeca20765966500e3582368b1a6dc3a60e3205c507121b06a22b3e0e4091efc4828cc17dd65049afebf09695d9a5abc50b1dc5c1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
| 1516 | + | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
| |||
0 commit comments