Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/db.cpp
// Copyright (c) 2017-2019 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#include <seeder/db.h> | #include <seeder/db.h> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
void CAddrInfo::Update(bool good) { | void CAddrInfo::Update(bool good) { | ||||
int64_t now = time(nullptr); | int64_t now = time(nullptr); | ||||
if (ourLastTry == 0) ourLastTry = now - MIN_RETRY; | if (ourLastTry == 0) ourLastTry = now - MIN_RETRY; | ||||
int age = now - ourLastTry; | int age = now - ourLastTry; | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |