Adaptation from https://gist.github.com/GeertJohan/b28da8105babf0553f21
add
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock,const Consensus::Params& );
To pow.h
and add the content of the cpp to the pow.cpp files