Remove now-unused WITNESS_STRIPPED variant of TxValidationResult

This commit is contained in:
Antoine Poinsot 2025-04-28 17:04:35 -04:00
parent f5f074eacc
commit 25282b653b
2 changed files with 0 additions and 5 deletions

View file

@ -33,10 +33,6 @@ enum class TxValidationResult {
* non-standard witnesses). * non-standard witnesses).
*/ */
TX_WITNESS_MUTATED, TX_WITNESS_MUTATED,
/**
* Transaction is missing a witness.
*/
TX_WITNESS_STRIPPED,
/** /**
* Tx already in mempool or conflicts with a tx in the chain * Tx already in mempool or conflicts with a tx in the chain
* (if it conflicts with another tx in mempool, we use MEMPOOL_POLICY as it failed to reach the RBF threshold) * (if it conflicts with another tx in mempool, we use MEMPOOL_POLICY as it failed to reach the RBF threshold)

View file

@ -1850,7 +1850,6 @@ void PeerManagerImpl::MaybePunishNodeForTx(NodeId nodeid, const TxValidationStat
case TxValidationResult::TX_MISSING_INPUTS: case TxValidationResult::TX_MISSING_INPUTS:
case TxValidationResult::TX_PREMATURE_SPEND: case TxValidationResult::TX_PREMATURE_SPEND:
case TxValidationResult::TX_WITNESS_MUTATED: case TxValidationResult::TX_WITNESS_MUTATED:
case TxValidationResult::TX_WITNESS_STRIPPED:
case TxValidationResult::TX_CONFLICT: case TxValidationResult::TX_CONFLICT:
case TxValidationResult::TX_MEMPOOL_POLICY: case TxValidationResult::TX_MEMPOOL_POLICY:
case TxValidationResult::TX_NO_MEMPOOL: case TxValidationResult::TX_NO_MEMPOOL: