1 suggestion
Optional improvements
[suggestion] · New Doxygen blocks document the wrong coin-selection failure result
Converting these blocks to Doxygen comments exposes their pre-existing claim that SelectCoinsBnB and CoinGrinder return std::nullopt, although both return errors through util::Result<SelectionResult>.
Location: src/wallet/coinselection.cpp:112 (head).
Details and suggested fix
Both @returns lines still say “or std::nullopt”. The implementations return util::Error() for insufficient funds. When a search finds no selection, they return either ErrorMaxWeightExceeded() or util::Error(), depending on whether the search encountered an overweight candidate. Update both lines to describe the actual contract, for example: @returns The selection result, or an error if no valid selection was found. This corrects the newly generated documentation without changing either function's behavior.