electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 75f6ab913316998e1e3c4b1d256de17bc367ea8e
parent 95cb2fbebfe5ad7345a7ced5a9a9f5e375649623
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 14 Dec 2018 07:41:26 +0100

rm requests from greenaddress plugin

Diffstat:
Melectrum/plugins/greenaddress_instant/qt.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrum/plugins/greenaddress_instant/qt.py b/electrum/plugins/greenaddress_instant/qt.py @@ -26,12 +26,12 @@ import base64 import urllib.parse import sys -import requests from PyQt5.QtWidgets import QApplication, QPushButton from electrum.plugin import BasePlugin, hook from electrum.i18n import _ +from electrum.network import Network class Plugin(BasePlugin): @@ -89,8 +89,8 @@ class Plugin(BasePlugin): sig = base64.b64encode(sig).decode('ascii') # 2. send the request - response = requests.request("GET", ("https://greenaddress.it/verify/?signature=%s&txhash=%s" % (urllib.parse.quote(sig), tx.txid())), - headers = {'User-Agent': 'Electrum'}) + url = "https://greenaddress.it/verify/?signature=%s&txhash=%s" % (urllib.parse.quote(sig), tx.txid()) + response = Network.send_http_on_proxy('get', url, headers = {'User-Agent': 'Electrum'}) response = response.json() # 3. display the result