This should help future ourselves and other devs to maintain the code. The code here took me a bit to grasp, so I imagine others could be in the same situation.
First, TxoSpenderIndex::FindSpender returns an Expected<optional<TxoSpender>> but
the two levels of the return type were undocumented, making it unclear what a returned
nullopt means. So added doc clarifying each return case.
Second, the result-building loop in gettxspendingprevout was not super readable
to me, mainly due to the nested if/else chain and missing comments on what is going on
along the process.
Hope this helps others, if not, I can close it. It was helpful to me.