Skip to content
Snippets Groups Projects
Unverified Commit 43cceade authored by Holger Nahrstaedt's avatar Holger Nahrstaedt Committed by GitHub
Browse files

Merge pull request #24 from crokkon/awaittxconfirmation

blockchain.awaitTxConfirmation() fix timeout
parents b0004abe bc11ce4a
No related branches found
No related tags found
No related merge requests found
......@@ -521,7 +521,7 @@ class Blockchain(object):
transaction contented and thus identifies a transaction
uniquely.
"""
counter = 10
counter = 0
for block in self.blocks():
counter += 1
for tx in block["transactions"]:
......@@ -531,7 +531,7 @@ class Blockchain(object):
return tx
if counter > limit:
raise Exception(
"The operation has not been added after 10 blocks!")
"The operation has not been added after %d blocks!" % (limit))
@staticmethod
def hash_op(event):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment