ScanForWalletTransactions
incorrectly documents that pindexStart
is optional. Fix that by making that parameter a const reference.
To the best of my knowledge it is impossible to hit those code paths from functional tests and I think it is not worth to write a unit test for this edge case:
0pindexStart == nullptr /* i.e. "optional" */ && pindexStop != nullptr