Skip to content

Commit

Permalink
Fix issue verement#9
Browse files Browse the repository at this point in the history
Eligius does not require a password, so make it default to the same value that bfgminer uses: -1 (Eligius ignores this anyway)
  • Loading branch information
devurandom committed Apr 24, 2013
1 parent f852c75 commit 60743ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bitcoin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def self.rpc_proxy(server = {}, user_agent = nil)
# This is a workaround; URI needs escaped username and password
if username
uri.user = URI.escape username, /[^#{URI::PATTERN::UNRESERVED}]/
uri.password = '-1'
end
if password
uri.password = URI.escape password, /[^#{URI::PATTERN::UNRESERVED}]/
end

Expand Down

0 comments on commit 60743ab

Please sign in to comment.