Changeset View
Changeset View
Standalone View
Standalone View
src/blockfileinfo.h
// Copyright (c) 201i8 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_BLOCKFILEINFO_H | #ifndef BITCOIN_BLOCKFILEINFO_H | ||||
#define BITCOIN_BLOCKFILEINFO_H | #define BITCOIN_BLOCKFILEINFO_H | ||||
#include "serialize.h" | #include "serialize.h" | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | void AddBlock(unsigned int nHeightIn, uint64_t nTimeIn) { | ||||
nHeightLast = nHeightIn; | nHeightLast = nHeightIn; | ||||
} | } | ||||
if (nTimeIn > nTimeLast) { | if (nTimeIn > nTimeLast) { | ||||
nTimeLast = nTimeIn; | nTimeLast = nTimeIn; | ||||
} | } | ||||
} | } | ||||
}; | }; | ||||
#endif //BITCOIN_BLOCKFILEINFO_H | #endif // BITCOIN_BLOCKFILEINFO_H |