Any RPC or CLI methods doesn't take into account what is in the mempool. It affects: The node has spendzeroconfchange=1