Skip to content

Commit

Permalink
Merge pull request #11 from devurandom/patch-1
Browse files Browse the repository at this point in the history
Fix issue #8
  • Loading branch information
verement committed Apr 11, 2013
2 parents f852c75 + b56ee1c commit d1cef03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellminer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def getwork(rpc = rpc, &block)
# unpack hex strings and fix byte ordering
work = work.map do |k, v|
k = k.to_sym
v = [v].pack('H*')
v = [v.to_s].pack('H*')
v = (k == :target) ? v.reverse : v.unpack('V*').pack('N*')
[k, v]
end
Expand Down

0 comments on commit d1cef03

Please sign in to comment.