| 669 | } |
| 670 | |
| 671 | bool AddrManImpl::Add_(const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty) |
| 672 | { |
| 673 | int added{0}; |
| 674 | for (std::vector<CAddress>::const_iterator it = vAddr.begin(); it != vAddr.end(); it++) { |
| 675 | added += AddSingle(*it, source, nTimePenalty) ? 1 : 0; |
| 676 | } |
| 677 | if (added > 0) { |
| 678 | LogPrint(BCLog::ADDRMAN, "Added %i addresses (of %i) from %s: %i tried, %i new\n", added, vAddr.size(), source.ToString(), nTried, nNew); |
| 679 | } |
| 680 | return added > 0; |
| 681 | } |
| 682 | |
| 683 | void AddrManImpl::Attempt_(const CService& addr, bool fCountFailure, int64_t nTime) |
| 684 | { |