https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
LOCK(cs_wallet);
    SyncTransaction(tx, {CWalletTx::Status::UNCONFIRMED,  0,  {},  0});
    auto it = mapWallet.find(tx->GetHash());
    if (it != mapWallet.end()) {
        it->second.fInMempool = true;
    }
}
void CWallet::transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) {
    LOCK(cs_wallet);
    auto it = mapWallet.find(tx->GetHash());
    if (it != mapWallet.end()) {
        it->second.fInMempool = false;
    }
    
    
    if (reason == MemPoolRemovalReason::CONFLICT) {