Skip to content

Commit

Permalink
SPORK_15 Superblock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MattF42 authored Feb 1, 2024
1 parent 076f3a8 commit c17298a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state)
}

bool CheckFoundersInputs(const CTransaction &tx, CValidationState &state, int nHeight){
if( nHeight < 500) {
if( nHeight < 1070290) { // Bad things happened with SPORK_15
return true;
}
if( nHeight < 500) {
return true;
}

Expand Down Expand Up @@ -588,7 +591,7 @@ bool CheckFoundersInputs(const CTransaction &tx, CValidationState &state, int nH
FOUNDER_1_SCRIPT = GetScriptForDestination(CBitcoinAddress(jijin1[0]).Get());
foundAmount = GetFoundationPayment(nHeight,0);
}

foundAmount = 250.0; // SPORK_15 hack until superblocks fixed more calmly.
BOOST_FOREACH(const CTxOut &output, tx.vout)
{
if (output.scriptPubKey == FOUNDER_1_SCRIPT && output.nValue >= foundAmount)
Expand Down

0 comments on commit c17298a

Please sign in to comment.