Currently template methods CConnman::ForEachNode
and CConnman::ForEachNodeThen
rely on CConnman::NodeFullyConnected
, which is defined in net.cpp. This can result in linker errors like so:
https://travis-ci.org/bitcoin/bitcoin/jobs/379011082
The fix is to move CNode
’s declaration above CConnman
in net.h, so that CConnman
can make use of CNode
members in the method implementations, and move NodeFullyConnected
from net.cpp to net.h.