0.20: Add txids with non-standard inputs to reject filter #19680
pull sdaftuar wants to merge 2 commits into bitcoin:0.20 from sdaftuar:2020-08-reject-unknown-wit-0.20 changing 5 files +35 −8-
sdaftuar commented at 3:32 pm on August 7, 2020: memberBackport of #19620 to 0.20.
-
DrahtBot added the label P2P on Aug 7, 2020
-
DrahtBot added the label Tests on Aug 7, 2020
-
DrahtBot added the label TX fees and policy on Aug 7, 2020
-
DrahtBot added the label Validation on Aug 7, 2020
-
Add txids with non-standard inputs to reject filter
Our policy checks for non-standard inputs depend only on the non-witness portion of a transaction: we look up the scriptPubKey of the input being spent from our UTXO set (which is covered by the input txid), and the p2sh checks only rely on the scriptSig portion of the input. Consequently it's safe to add txids of transactions that fail these checks to the reject filter, as the witness is irrelevant to the failure. This is helpful for any situation where we might request the transaction again via txid (either from txid-relay peers, or if we might fetch the transaction via txid due to parent-fetching of orphans). Further, in preparation for future witness versions being deployed on the network, ensure that WITNESS_UNKNOWN transactions are rejected in AreInputsStandard(), so that transactions spending v1 (or greater) witness outputs will fall into this category of having their txid added to the reject filter. Github-Pull: #19620 Rebased-From: 7989901c7eb62ca28b3d1e5d5831041a7267e495
-
test addition of unknown segwit spends to txid reject filter
Github-Pull: #19620 Rebased-From: 9f88ded82b2898ca63d44c08072f1ba52f0e18d7
-
sdaftuar force-pushed on Aug 7, 2020
-
fanquake added the label Backport on Aug 7, 2020
-
jnewbery commented at 9:22 am on August 11, 2020: memberutACK 107cf1515e69ee773ad1bcc1d5b6fffa49b78750
-
MarcoFalke removed the label Backport on Aug 23, 2020
-
MarcoFalke removed the label P2P on Aug 23, 2020
-
MarcoFalke removed the label TX fees and policy on Aug 23, 2020
-
MarcoFalke removed the label Tests on Aug 23, 2020
-
MarcoFalke removed the label Validation on Aug 23, 2020
-
DrahtBot added the label Backport on Aug 23, 2020
-
instagibbs commented at 6:11 pm on August 24, 2020: membershould this be added to 0.20.2 milestone?
-
instagibbs commented at 6:15 pm on August 24, 2020: member
-
MarcoFalke added this to the milestone 0.20.2 on Aug 24, 2020
-
jnewbery added this to the "Blockers" column in a project
-
fjahr commented at 2:48 pm on September 1, 2020: member
utACK 107cf1515e69ee773ad1bcc1d5b6fffa49b78750
Didn’t do full testing but briefly verified that the test fails if the behavior changes are undone.
-
fanquake merged this on Sep 4, 2020
-
fanquake closed this on Sep 4, 2020
-
fanquake removed this from the "Blockers" column in a project
-
DrahtBot locked this on Feb 15, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 00:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 00:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me