For software that interfaces with Bitcoin Core via RPC, it can be useful to know whether the fRelayTxes flag is set. It could be added to `getnetworkinfo`.

{
    AssertLockHeld(cs_main);
    
    
    
    
    
    
    flags = std::max(flags, 0);
    
    
    
    
    
    
    const int nBlockHeight = chainActive.Height() + 1;
    
    
    
    
    
    const int64_t nBlockTime = (flags & LOCKTIME_MEDIAN_TIME_PAST)
                             ? chainActive.Tip()->GetMedianTimePast()
                             : GetAdjustedTime();
    return IsFinalTx(tx, nBlockHeight, nBlockTime);