HomePhabricator

[net] Remove assert(nMaxInbound > 0)
fa1c3c2eb0a1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

[net] Remove assert(nMaxInbound > 0)

nMaxInbound might very well be 0 or -1, if the user prefers to keep
a small number of maxconnections.

Note: nMaxInbound of -1 means that the user set maxconnections
to 8 or less, but we still want to keep an additional slot for
the feeler connection.

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Oct 24 2016, 19:38
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGced22d035ac0: Merge #8995: Add missing cs_main lock to ::GETBLOCKTXN processing
Branches
Unknown
Tags
Unknown

Event Timeline

MarcoFalke <falke.marco@gmail.com> committed rSTAGINGfa1c3c2eb0a1: [net] Remove assert(nMaxInbound > 0) (authored by MarcoFalke <falke.marco@gmail.com>).Oct 24 2016, 20:12