Skip to content

Commit

Permalink
Merge pull request #605 from qtumproject/djaen/upstream-fix-bitcoin
Browse files Browse the repository at this point in the history
Fix from bitcoin for duplicate inputs
  • Loading branch information
qtum-neil authored Sep 20, 2018
2 parents 56845d7 + 816f61c commit 8db6a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4137,7 +4137,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
bool lastWasContract=false;
// Check transactions
for (const auto& tx : block.vtx) {
if (!CheckTransaction(*tx, state, false))
if (!CheckTransaction(*tx, state, true))
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
//OP_SPEND can only exist immediately after a contract tx in a block, or after another OP_SPEND
Expand Down

0 comments on commit 8db6a88

Please sign in to comment.