mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-03 18:54:38 +00:00
Bugfix CValidationResult for BIP30 + add DoS
This commit is contained in:
parent
79892883d7
commit
7cdc37c0a4
@ -1605,7 +1605,7 @@ bool CBlock::ConnectBlock(CValidationState &state, CBlockIndex* pindex, CCoinsVi
|
|||||||
for (unsigned int i=0; i<vtx.size(); i++) {
|
for (unsigned int i=0; i<vtx.size(); i++) {
|
||||||
uint256 hash = GetTxHash(i);
|
uint256 hash = GetTxHash(i);
|
||||||
if (view.HaveCoins(hash) && !view.GetCoins(hash).IsPruned())
|
if (view.HaveCoins(hash) && !view.GetCoins(hash).IsPruned())
|
||||||
return error("ConnectBlock() : tried to overwrite transaction");
|
return state.DoS(100, error("ConnectBlock() : tried to overwrite transaction"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user