diff --git a/src/main.cpp b/src/main.cpp index c15049253..6bc40c659 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1259,11 +1259,10 @@ unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& in // Ensure that a coinbase transaction is structured according to the consensus rules of the chain bool ContextualCheckCoinbaseTransaction(int32_t slowflag,const CBlock *block,CBlockIndex * const previndex,const CTransaction& tx, const int nHeight,int32_t validateprices) { - if ( slowflag != 0 && ASSETCHAINS_CBOPRET != 0 && validateprices != 0 && nHeight > 0 && tx.vout.size() > 0 ) - { - if ( hush_opretvalidate(block,previndex,nHeight,tx.vout[tx.vout.size()-1].scriptPubKey) < 0 ) - return(false); - } + // The only coinbase-specific contextual check here was CBOPRET price-oracle + // validation (hush_opretvalidate), gated on ASSETCHAINS_CBOPRET, which is always + // 0 on DragonX (no -ac_cbopret). With that dead path removed there is nothing left + // to validate, so a DragonX coinbase is unconditionally valid at this stage. return(true); }