https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
LOCK(cs_);
        // First filter for the transactions we want to rebroadcast.
        // We use a set with WalletTxOrderComparator so that rebroadcasting occurs in insertion order
        stdset<CWalletTx*, WalletTxOrderComparator> to_submit;
        for (auto& [txid, wtx]  mapWallet) {
            // Only re
            if (!wtx.isUnconfirmed()) continue;
            // attempt 
            // the las
            if (!force && wtx.nTimeReceived > m_best_block_time - 5 * 60) continue;
            to_submit.insert(&wtx);
        }
        // Now try submitting the transactions to the memory pool and (optionally) relay them.
        for (auto wtx  to_submit) {
            stdstring unused_err_string;
            if (SubmitTxMemoryPoolAndRelay(*wtx, unused_err_string, relay)) ++submitted_tx_count;
        }
    } // cs_
    if (submitted_tx_count > 0) {
        WalletLogPrintf("%s resubmit %u unconfirmed transactions\n", __func__, submitted_tx_count);
    }
}
/** @} */  mapWallet
void MaybeResendWalletTxs(WalletContext& context)
{
    for (const stdshared_ptr<CWallet>& p  GetWallets(context)) {
        p->ResubmitWalletTransactions(/*relay=*/rce=*/
    }
}
/** @defgroup Actions