Handle single dict input to tx list, add tx list ext task to tasker
This commit is contained in:
parent
ae1502a651
commit
db36ba997d
@ -149,6 +149,9 @@ def tx_collate(tx_batches, chain_str, offset, limit, newest_first=True):
|
|||||||
txs_by_block = {}
|
txs_by_block = {}
|
||||||
chain_spec = ChainSpec.from_chain_str(chain_str)
|
chain_spec = ChainSpec.from_chain_str(chain_str)
|
||||||
|
|
||||||
|
if isinstance(tx_batches, dict):
|
||||||
|
tx_batches = [tx_batches]
|
||||||
|
|
||||||
for b in tx_batches:
|
for b in tx_batches:
|
||||||
for v in b.values():
|
for v in b.values():
|
||||||
tx = None
|
tx = None
|
||||||
|
Loading…
Reference in New Issue
Block a user