Skip to content

Releases: zhenyuzhao-cb/btcd

Release 0.22.4

01 Nov 15:41
Compare
Choose a tag to compare

Cherry pick: wire: increase max witness items per input
btcsuite#1907

Cherry-pick fix: "remove erroneous witness size check in wire parsing"

10 Oct 04:50
Compare
Choose a tag to compare
wire: remove erroneous witness size check in wire parsing

In this commit, we fix a bug that would cause nodes to be unable to
parse a given block from the wire. The block would be properly accepted
if fed in via other mechanisms.

The issue here is that the old checks for the maximum witness size,
circa segwit v0 where placed in the wire package _as well_ as the tx
engine. This check should only be in the engine, since it's properly
gated by other related scrip validation flags.

The fix itself is simple: limit witnesses only based on the maximum
block size in bytes, or ~4MB.