MCPcopy Create free account
hub / github.com/ElementsProject/elements / __init__

Method __init__

contrib/linearize/linearize-hashes.py:26–30  ·  view source on GitHub ↗
(self, host, port, username, password)

Source from the content-addressed store, hash-verified

24
25class 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:

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected