The function is supposed to be only called once when the version msg arrives (a single time). Calling it twice would be an internal logic bug. However, the LogError
in this function has many issues:
- If the error happens in tests, as is the case for the buggy fuzz test, it will go unnoticed
- It is dead code, unless a bug is introduced to execute it
Fix all issues by using Assume(!m_addr_local.IsValid())
instead. Idea taken from #30364 (review)