Skip to content

Commit

Permalink
Fix for Electron-Cash#1172 -- Workaround missing requests.urllib3
Browse files Browse the repository at this point in the history
Also bumped version to 3.9.1ShufBeta since I noticed people using it
already and this is a somewhat crucial fix.
  • Loading branch information
cculianu committed Feb 28, 2019
1 parent 7a52414 commit ef194f0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions contrib/update_checker/releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"3.3.4CS": {
"bitcoincash:qphax4cg8sxuc0qnzk6sx25939ma7y877uz04s2z82": "HNkxAJzvWGP5/YPIJrZRQFK5btM1nd/NKCwWAlejc5oEJ6VNbzo6KfqOoIBpPTauK21Tp/qXY7SMmlO+6ssMPOA="
},
"3.9.0ShufBeta": {
"bitcoincash:qphax4cg8sxuc0qnzk6sx25939ma7y877uz04s2z82": "G4EnHCg4Ar6G8nPqIX5x0imPrpbu9nq63cnxibC6c0NZQ6HLulvhsc/osaJaC7d8xOUxKkjFI5ROgeRhdpJg1Qk="
"3.9.1ShufBeta": {
"bitcoincash:qphax4cg8sxuc0qnzk6sx25939ma7y877uz04s2z82": "G1JYWsdrgHKnSsXbO7IV6LlJrBuOSMT1fpwvIcmvAWjZPcb0j5Gkr7kWCVVdXMXXoezn313Hpq/K6vQdSEHo5xc="
}
}
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGE_VERSION = '3.9.0ShufBeta' # version of the client package
PACKAGE_VERSION = '3.9.1ShufBeta' # version of the client package
PROTOCOL_VERSION = '1.4' # protocol version requested

# The hash of the mnemonic seed must begin with this
Expand Down
19 changes: 11 additions & 8 deletions plugins/shuffle/comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
from electroncash.interface import Connection
from electroncash.util import print_error

# Temporary hack to suppress InsecureRequestWarning. Need to actually do a
# whole song and dance to verify SSL certs. Blergh.
# https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl
#
# Note: We do end up verifying SSL certs per-socket, but we do it explicitly
# in verify_ssl_socket() in this fiile, and not necessarily for _every_ urllib3
# request.
requests.urllib3.disable_warnings(requests.urllib3.exceptions.InsecureRequestWarning)
# urllib3 may be missing from requests namespace in older requests versions. safe to ignore. See Electron-Cash#1172
if hasattr(requests, 'urllib3'):
# Temporary hack to suppress InsecureRequestWarning. Need to actually do a
# whole song and dance to verify SSL certs. Blergh.
# https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl
#
# Note: We do end up verifying SSL certs per-socket, but we do it explicitly
# in verify_ssl_socket() in this fiile, and not necessarily for _every_ urllib3
# request.
requests.urllib3.disable_warnings(requests.urllib3.exceptions.InsecureRequestWarning)


class Channel(queue.Queue):
""" simple Queue wrapper for using recv and send """
Expand Down

0 comments on commit ef194f0

Please sign in to comment.