PIVX Core  5.6.99
P2P Digital Currency
Enumerations | Functions
chain.cpp File Reference
#include "chain.h"
#include "legacy/stakemodifier.h"
Include dependency graph for chain.cpp:

Go to the source code of this file.

Enumerations

enum  { nMedianTimeSpan = 11 }
 

Functions

const CBlockIndexLastCommonAncestor (const CBlockIndex *pa, const CBlockIndex *pb)
 Find the last common ancestor two blocks have. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
nMedianTimeSpan 

Definition at line 202 of file chain.cpp.

Function Documentation

◆ LastCommonAncestor()

const CBlockIndex* LastCommonAncestor ( const CBlockIndex pa,
const CBlockIndex pb 
)

Find the last common ancestor two blocks have.

Find the forking point between two chain tips.

Both pa and pb must be non-nullptr.

Definition at line 337 of file chain.cpp.

Here is the call graph for this function: