Skip to content

Commit bd62c43

Browse files
authored
fixes #197 (#198)
1 parent aa9d884 commit bd62c43

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Features/Blockcore.Features.Consensus/Rules/CommonRules/CheckPowTransactionRule.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ public virtual void CheckTransaction(Network network, ConsensusOptions options,
8686
var inOutPoints = new HashSet<OutPoint>();
8787
foreach (TxIn txin in tx.Inputs)
8888
{
89-
if (inOutPoints.Contains(txin.PrevOut))
89+
if (!inOutPoints.Add(txin.PrevOut))
9090
{
9191
this.Logger.LogTrace("(-)[TX_DUP_INPUTS]");
9292
ConsensusErrors.BadTransactionDuplicateInputs.Throw();
9393
}
94-
95-
inOutPoints.Add(txin.PrevOut);
9694
}
9795

9896
if (tx.IsCoinBase)

0 commit comments

Comments
 (0)