MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Connected_

Method Connected_

src/addrman.cpp:858–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858void AddrManImpl::Connected_(const CService& addr, NodeSeconds time)
859{
860 AssertLockHeld(cs);
861
862 AddrInfo* pinfo = Find(addr);
863
864 // if not found, bail out
865 if (!pinfo)
866 return;
867
868 AddrInfo& info = *pinfo;
869
870 // update info
871 const auto update_interval{20min};
872 if (time - info.nTime > update_interval) {
873 info.nTime = time;
874 }
875}
876
877void AddrManImpl::SetServices_(const CService& addr, ServiceFlags nServices)
878{

Callers

nothing calls this directly

Calls 1

FindFunction · 0.85

Tested by

no test coverage detected