updated for Darkcoin