That code is essentially identical, but reformatted, and far beyond an occasional duplicated line or two. Even the variable names are the same, same sentinel values used, etc. It is clearly a copy.
In stripping out the Bitcoin attribution I call this clear fraud.