Rav3n

Revert broken changes from previous pull request; this leaves the dogecoin code in broken state, but more acceptable to the dogecoin developers than it was before the original pull request.