(self, host, port, username, password)
| 24 | |
| 25 | class BitcoinRPC: |
| 26 | def __init__(self, host, port, username, password): |
| 27 | authpair = "%s:%s" % (username, password) |
| 28 | authpair = authpair.encode('utf-8') |
| 29 | self.authhdr = b"Basic " + base64.b64encode(authpair) |
| 30 | self.conn = HTTPConnection(host, port=port, timeout=30) |
| 31 | |
| 32 | def execute(self, obj): |
| 33 | try: |