Updated for Darkcoin