Handle single dict input to tx list, add tx list ext task to tasker

This commit is contained in:
nolash 2021-03-02 16:50:48 +01:00
parent ae1502a651
commit db36ba997d
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -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