Preheat the oven to 350°F (180°C). Grease a 9-inch round cake pan and line the bottom with parchment paper.
Beat the eggs and granulated sugar with an electric mixer for 3–4 minutes, until pale, thick, and fluffy.
Add the softened butter and sour cream. Mix on medium speed until combined. Mix in the cognac or brandy, if using.
Fold in the chopped walnuts.
In a separate bowl, whisk together the flour and baking powder. Fold the dry ingredients into the batter just until combined.
Transfer the batter to the prepared pan and smooth the top.
Bake for 20–25 minutes, or until a toothpick inserted into the center comes out clean.
Cool the cake in the pan for 10 minutes, then transfer it to a wire rack. Allow it to cool completely.
To make the glaze, whisk together the confectioners’ sugar, 1½ tablespoons of milk, vanilla, and salt.
Add more milk one teaspoon at a time until the glaze is thick but pourable.
Pour the glaze over the cooled cake. Decorate with walnut halves and let the glaze set for 15–20 minutes before slicing.