diff --git a/src/validation.cpp b/src/validation.cpp --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1826,11 +1826,7 @@ nSigOpsCount += GetSigOpCountWithoutP2SH(tx, flags); } - // We do not need to throw when a transaction is duplicated. If they are - // in the same block, CheckBlock will catch it, and if they are in a - // different block, it'll register as a double spend or BIP30 violation. - // In both cases, we get a more meaningful feedback out of it. - AddCoins(view, tx, pindex->nHeight, true); + AddCoins(view, tx, pindex->nHeight); } for (const auto &ptx : block.vtx) {