-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
release: create release branch for v0.22.2 to backport block parsing issue #1901
Conversation
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.
This changes isDust to IsDust so other golang projects (btcwallet or lnd) can use the precise dust calculation used by btcd.
ae4a951
to
f9ca8c0
Compare
This commit modifies no behavior and would allow other projects to retrieve the dust limit for a particular output type before the amount of the output is known. This is particularly useful in the Lightning Network for channel negotiation.
f9ca8c0
to
d8612c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI seems to be failing since a file that's assumed in the CI checks is no longer in the repo? edit: aaaand CI is gone all together? |
Tacked that commit on above in the end. |
d8612c5
to
badf3fd
Compare
badf3fd
to
ba2fba5
Compare
Tests all pass for me locally, but it's using an ancient version of Go in the CI since that's what we had checked in at the time. |
@@ -204,7 +204,7 @@ func TestCheckPkScriptStandard(t *testing.T) { | |||
} | |||
} | |||
|
|||
// TestDust tests the isDust API. | |||
// TestDust tests the IsDust API. | |||
func TestDust(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Search
No description provided.