Changeset View
Changeset View
Standalone View
Standalone View
src/chain.h
Show First 20 Lines • Show All 428 Lines • ▼ Show 20 Lines | public: | ||||
CBlockLocator GetLocator(const CBlockIndex *pindex = nullptr) const; | CBlockLocator GetLocator(const CBlockIndex *pindex = nullptr) const; | ||||
/** | /** | ||||
* Find the last common block between this chain and a block index entry. | * Find the last common block between this chain and a block index entry. | ||||
*/ | */ | ||||
const CBlockIndex *FindFork(const CBlockIndex *pindex) const; | const CBlockIndex *FindFork(const CBlockIndex *pindex) const; | ||||
/** | /** | ||||
* Find the earliest block with timestamp equal or greater than the given. | * Find the earliest block with timestamp equal or greater than the given | ||||
* time and height equal or greater than the given height. | |||||
*/ | */ | ||||
CBlockIndex *FindEarliestAtLeast(int64_t nTime) const; | CBlockIndex *FindEarliestAtLeast(int64_t nTime, int height) const; | ||||
}; | }; | ||||
#endif // BITCOIN_CHAIN_H | #endif // BITCOIN_CHAIN_H |