Skip to content

Instantly share code, notes, and snippets.

View NicolasChoukroun's full-sized avatar

Nikko NicolasChoukroun

View GitHub Profile
@NicolasChoukroun
NicolasChoukroun / DarkGravityWave3.cpp
Created February 3, 2019 03:24 — forked from GeertJohan/DarkGravityWave3.cpp
Dark Gravity Wave version 3
static const int64 nTargetSpacing = 2.5 * 60; // Guldencoin: 2.5 minutes between block
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock) {
/* current difficulty formula, darkcoin - DarkGravity v3, written by Evan Duffield - [email protected] */
const CBlockIndex *BlockLastSolved = pindexLast;
const CBlockIndex *BlockReading = pindexLast;
const CBlockHeader *BlockCreating = pblock;
BlockCreating = BlockCreating;
int64 nActualTimespan = 0;