Dash Core  0.12.2.1
P2P Digital Currency
chain.cpp File Reference
#include "chain.h"

Go to the source code of this file.

Functions

static int InvertLowestOne (int n)
 
static int GetSkipHeight (int height)
 

Function Documentation

◆ GetSkipHeight()

static int GetSkipHeight ( int  height)
inlinestatic

Compute what height to jump back to with the CBlockIndex::pskip pointer.

Definition at line 68 of file chain.cpp.

Referenced by CBlockIndex::BuildSkip(), and CBlockIndex::GetAncestor().

◆ InvertLowestOne()

static int InvertLowestOne ( int  n)
inlinestatic

Turn the lowest '1' bit in the binary representation of a number into a '0'.

Definition at line 65 of file chain.cpp.

Referenced by GetSkipHeight().