> Also add code comment to clarify surprising code noted by practicalswift
> https://github.com/bitcoin/bitcoin/pull/18657#issuecomment-614278450
See also discussion on unmerged [[https://github.com/bitcoin/bitcoin/pull/18657 | PR18657]], for why this test is added.
This is a backport of Core [[https://github.com/bitcoin/bitcoin/pull/18660 | PR18660]]