Skip to content

Commit

Permalink
Merge pull request #38 from sora-xor/fix/mst_support
Browse files Browse the repository at this point in the history
Fixed mst support
  • Loading branch information
Pavel authored Dec 29, 2021
2 parents 321d096 + 8287b1d commit 96cf077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion query.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type_registry=load_type_registry_file('./custom_types_mst.json'),
)

block_hash = substrate.get_block_hash(block_id=3077347)
block_hash = substrate.get_block_hash(block_id=3087806)

extrinsics = substrate.get_block(block_hash=block_hash)['extrinsics']

Expand Down
2 changes: 2 additions & 0 deletions run_node_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ async def async_main(async_session, begin=1, clean=False, silent=False):
end = substrate.get_runtime_block(substrate.get_chain_head())["block"]["header"][
"number"
]
substrate = connect_to_substrate_node()

selected_events = {"swap"}
func_map = {
Expand Down Expand Up @@ -251,6 +252,7 @@ async def async_main(async_session, begin=1, clean=False, silent=False):
except:
substrate = connect_to_substrate_node_mst()
events, res, grouped_events = get_events_from_block(substrate, block)
substrate = connect_to_substrate_node()

timestamp = get_timestamp(res)
process_events(dataset, func_map, res, grouped_events)
Expand Down

0 comments on commit 96cf077

Please sign in to comment.