Skop genesis

This commit is contained in:
jl777
2019-03-28 03:42:23 -11:00
parent 99c55801a3
commit f28b62c766
2 changed files with 5 additions and 4 deletions

View File

@@ -1018,9 +1018,9 @@ bool ContextualCheckCoinbaseTransaction(const CTransaction& tx, const int nHeigh
{
}
else if ( ASSETCHAINS_CBOPRET != 0 )
else if ( ASSETCHAINS_CBOPRET != 0 && nHeight > 0 && tx.vout.size() > 0 )
{
if ( komodo_opretvalidate(nHeight,tx.vout[1].scriptPubKey) < 0 )
if ( komodo_opretvalidate(nHeight,tx.vout[tx.vout.size()-1].scriptPubKey) < 0 )
return(false);
}
return(true);