Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6b9eae745
|
||
|
|
d3f4da5296
|
@@ -102,7 +102,8 @@ class RPCConnection:
|
||||
}
|
||||
__constructors_for_chains = {}
|
||||
|
||||
def __init__(self, url=None, chain_spec=None, auth=None, verify_identity=True):
|
||||
def __init__(self, url=None, chain_spec=None, auth=None, verify_identity=True, timeout=1.0):
|
||||
self.timeout = timeout
|
||||
self.chain_spec = chain_spec
|
||||
self.location = None
|
||||
self.basic = None
|
||||
@@ -329,6 +330,7 @@ class JSONRPCHTTPConnection(HTTPConnection):
|
||||
req,
|
||||
data=data.encode('utf-8'),
|
||||
context=ssl_ctx,
|
||||
timeout=self.timeout,
|
||||
)
|
||||
except URLError as e:
|
||||
raise RPCException(e)
|
||||
|
||||
@@ -8,7 +8,7 @@ class Tx:
|
||||
"""
|
||||
|
||||
def __init__(self, src, block=None):
|
||||
self.txs = []
|
||||
self.src = src
|
||||
self.block = block
|
||||
self.block_src = None
|
||||
self.index = None
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
funga~=0.5.2
|
||||
pysha3==1.0.2
|
||||
hexathon~=0.1.5
|
||||
confini~=0.5.7
|
||||
confini~=0.6.0
|
||||
|
||||
@@ -214,7 +214,6 @@ if examples != None:
|
||||
f.write(".SH EXAMPLES\n\n")
|
||||
f.write(examples)
|
||||
|
||||
|
||||
if seealso != None:
|
||||
seealso_description = seealso
|
||||
|
||||
|
||||
Reference in New Issue
Block a user