We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f4847 commit f969dd8Copy full SHA for f969dd8
zilliqaetl/service/zilliqa_service.py
@@ -23,6 +23,7 @@
23
24
TXN_HASH_NOT_PRESENT = "Txn Hash not Present"
25
TX_BLOCK_NO_TRANSACTIONS = "TxBlock has no transactions"
26
+NO_MICROBLOCKS = "Failed to get Microblock"
27
28
class ZilliqaService(object):
29
def __init__(self, zilliqa_api):
@@ -52,7 +53,7 @@ def get_transactions(self, block_number):
52
53
except APIError as e:
54
if str(e) == TXN_HASH_NOT_PRESENT:
55
return self.get_validated_transactions(block_number)
- if str(e) == TX_BLOCK_NO_TRANSACTIONS:
56
+ if str(e) == TX_BLOCK_NO_TRANSACTIONS or str(e) == NO_MICROBLOCKS:
57
return []
58
raise e
59
0 commit comments