Put the vegetable stock in a saucepan, add the lime leaves, the galangal or ginger, carrots, half the crushed garlic and the chillies. Simmer for 15 minutes. Strain the stock, reserving the liquid and both the carrots and chillies separately.
Heat the oil in a saucepan and fry the remaining garlic for 1 minute. Add the reserved carrots and the peanuts and cook, stirring, for 1 minute. Add the coconut milk and curry paste and stir until well blended. Now add the reserved liquid, the mushrooms and shallots and simmer, stirring occasionally, for 15 minutes or until the shallots are cooked. Season to taste.
Deseed and finely slice the reserved cooked chillies. Use to garnish the curry.