You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deduplicate code that exists in both tx processing and ProcessOrphanTx.
Additionally, this can be reused in a function that handles multiple
MempoolAcceptResults from package submission.
// We can add the wtxid of this transaction to our reject filter.
3066
+
// Do not add txids of witness transactions or witness-stripped
3067
+
// transactions to the filter, as they can have been malleated;
3068
+
// adding such txids to the reject filter would potentially
3069
+
// interfere with relay of valid transactions from peers that
3070
+
// do not support wtxid-based relay. See
3071
+
// https://github.com/bitcoin/bitcoin/issues/8279 for details.
3072
+
// We can remove this restriction (and always add wtxids to
3073
+
// the filter even for witness stripped transactions) once
3074
+
// wtxid-based relay is broadly deployed.
3075
+
// See also comments in https://github.com/bitcoin/bitcoin/pull/18044#discussion_r443419034
3076
+
// for concerns around weakening security of unupgraded nodes
if (state.GetResult() != TxValidationResult::TX_WITNESS_STRIPPED) {
3106
-
// We can add the wtxid of this transaction to our reject filter.
3107
-
// Do not add txids of witness transactions or witness-stripped
3108
-
// transactions to the filter, as they can have been malleated;
3109
-
// adding such txids to the reject filter would potentially
3110
-
// interfere with relay of valid transactions from peers that
3111
-
// do not support wtxid-based relay. See
3112
-
// https://github.com/bitcoin/bitcoin/issues/8279 for details.
3113
-
// We can remove this restriction (and always add wtxids to
3114
-
// the filter even for witness stripped transactions) once
3115
-
// wtxid-based relay is broadly deployed.
3116
-
// See also comments in https://github.com/bitcoin/bitcoin/pull/18044#discussion_r443419034
3117
-
// for concerns around weakening security of unupgraded nodes
if (state.GetResult() != TxValidationResult::TX_WITNESS_STRIPPED) {
4368
-
// We can add the wtxid of this transaction to our reject filter.
4369
-
// Do not add txids of witness transactions or witness-stripped
4370
-
// transactions to the filter, as they can have been malleated;
4371
-
// adding such txids to the reject filter would potentially
4372
-
// interfere with relay of valid transactions from peers that
4373
-
// do not support wtxid-based relay. See
4374
-
// https://github.com/bitcoin/bitcoin/issues/8279 for details.
4375
-
// We can remove this restriction (and always add wtxids to
4376
-
// the filter even for witness stripped transactions) once
4377
-
// wtxid-based relay is broadly deployed.
4378
-
// See also comments in https://github.com/bitcoin/bitcoin/pull/18044#discussion_r443419034
4379
-
// for concerns around weakening security of unupgraded nodes
0 commit comments