Skip to content

Commit

Permalink
Bugfix: Correct block version check for getwork/GBT
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 13, 2016
1 parent 17c7d6a commit d5fd5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eloipool.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def checkData(share):
if data[72:76] != bits:
raise RejectedShare('bad-diffbits')

if data[0] != config.BlockVersionBytes:
if data[0:4] != config.BlockVersionBytes:
raise RejectedShare('bad-version')

def buildStratumData(share, merkleroot):
Expand Down

0 comments on commit d5fd5ba

Please sign in to comment.