Skip to content

Commit

Permalink
[SQUASH] Don't accept shield stake as normal tx
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Jul 19, 2023
1 parent c8f25a4 commit 9f40390
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ static bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state,
if (tx.IsCoinStake())
return state.DoS(100, false, REJECT_INVALID, "coinstake");

// CoinShieldStake is also only valid in a block, not as a loose transaction
if (tx.IsCoinShieldStake())
return state.DoS(100, false, REJECT_INVALID, "coinshieldstake");

// LLMQ final commitment too, not valid as a loose transaction
if (tx.IsQuorumCommitmentTx())
return state.DoS(100, false, REJECT_INVALID, "llmqcomm");
Expand Down

0 comments on commit 9f40390

Please sign in to comment.