File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -892,6 +892,15 @@ where
892892 }
893893 Ok ( blob_ids)
894894 }
895+
896+ pub async fn block_exporter_context (
897+ & self ,
898+ block_exporter_id : u32 ,
899+ ) -> Result < ViewContext < u32 , Store > , ViewError > {
900+ let root_key = bcs:: to_bytes ( & BaseKey :: BlockExporterState ( block_exporter_id) ) ?;
901+ let store = self . store . clone_with_root_key ( & root_key) ?;
902+ Ok ( ViewContext :: create_root_context ( store, block_exporter_id) . await ?)
903+ }
895904}
896905
897906impl < Store > DbStorage < Store , WallClock >
@@ -915,15 +924,6 @@ where
915924 }
916925 Ok ( chain_ids)
917926 }
918-
919- pub async fn block_exporter_context (
920- & self ,
921- block_exporter_id : u32 ,
922- ) -> Result < ViewContext < u32 , Store > , ViewError > {
923- let root_key = bcs:: to_bytes ( & BaseKey :: BlockExporterState ( block_exporter_id) ) ?;
924- let store = self . store . clone_with_root_key ( & root_key) ?;
925- Ok ( ViewContext :: create_root_context ( store, block_exporter_id) . await ?)
926- }
927927}
928928
929929#[ cfg( with_testing) ]
You can’t perform that action at this time.
0 commit comments