Problem: .size() returns an unsigned type. GetArg a signed one. Better use:
```
if (mapOrphanBlocksByPrev.size() <= (size_t)std::max(0, GetArg(...))
```