Skip to content

Commit

Permalink
AcceptBlock() reject blocks double spending the coin stake input insi…
Browse files Browse the repository at this point in the history
…de the same block

Signed-off-by: cevap <[email protected]>
  • Loading branch information
furszy authored and cevap committed Feb 7, 2019
1 parent 110aaa8 commit 47be94d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4609,20 +4609,6 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
// Start at the block we're adding on to
CBlockIndex *prev = pindexPrev;

// Inputs
std::vector<CTxIn> ionInputs;
std::vector<CTxIn> xIONInputs;

for (CTxIn stakeIn : stakeTxIn.vin) {
if(stakeIn.scriptSig.IsZerocoinSpend()){
xIONInputs.push_back(stakeIn);
}else{
ionInputs.push_back(stakeIn);
}
}
const bool hasIONInputs = !ionInputs.empty();
const bool hasXIONInputs = !xIONInputs.empty();

int readBlock = 0;
vector<CBigNum> vBlockSerials;
CBlock bl;
Expand Down

0 comments on commit 47be94d

Please sign in to comment.