Skip to content

Commit

Permalink
Squash in new validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Aug 31, 2023
1 parent 1691246 commit 9000dd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/evo/specialtx_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ static bool CheckProRegTx(const CTransaction& tx, const CBlockIndex* pindexPrev,
if (pl.shieldCollateral.bindingSig.size() != (*txMut.sapData).bindingSig.size()) {
return state.DoS(100, false, REJECT_INVALID, "bad-protx-bindingSig-len");
}
if (pl.shieldCollateral.output.nValue != Params().GetConsensus().nMNCollateralAmt) {
return state.DoS(100, false, REJECT_INVALID, "bad-protx-proofCollateralOutput-amt");
}
std::copy(pl.shieldCollateral.bindingSig.begin(), pl.shieldCollateral.bindingSig.end(), (*txMut.sapData).bindingSig.begin());

// Check that the proof is valid
Expand Down

0 comments on commit 9000dd8

Please sign in to comment.