```
Refactoring:
all cases of using (uint32_t) -1 in COutPoint class are replaced
with const;
also all remaining instances of (UNSIGNED)-1 transformed to
std::numeric_limits<UNSIGNED>::max() (by @practicalswift).
```
Backport of core [[https://github.com/bitcoin/bitcoin/pull/14838 | PR14838]].