Skip to content

Commit

Permalink
Fix transactions rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
mangonote-devs committed Feb 11, 2024
1 parent 0165242 commit 27cff2d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3187,9 +3187,12 @@ bool Blockchain::check_tx_outputs(const transaction& tx, tx_verification_context
// from v14, allow only CLSAGs
if (hf_version > HF_VERSION_CLSAG) {
if (tx.version >= 2) {
MERROR_VER("Ringct type " << (unsigned)tx.rct_signatures.type << " is not allowed from v" << (HF_VERSION_CLSAG + 1));
tvc.m_invalid_output = true;
return false;
if (tx.rct_signatures.type <= rct::RCTTypeBulletproof2)
{
MERROR_VER("Ringct type " << (unsigned)tx.rct_signatures.type << " is not allowed from v" << (HF_VERSION_CLSAG + 1));
tvc.m_invalid_output = true;
return false;
}
}
}

Expand Down

0 comments on commit 27cff2d

Please sign in to comment.