File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
crates/apollo_batcher/src Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use apollo_mempool_types::communication::SharedMempoolClient;
3434use apollo_mempool_types:: mempool_types:: CommitBlockArgs ;
3535use apollo_reverts:: revert_block;
3636use apollo_state_sync_types:: state_sync_types:: SyncBlock ;
37- use apollo_storage:: block_hash:: BlockHashStorageWriter ;
37+ use apollo_storage:: block_hash:: { BlockHashStorageReader , BlockHashStorageWriter } ;
3838use apollo_storage:: block_hash_marker:: {
3939 BlockHashMarkerStorageReader ,
4040 BlockHashMarkerStorageWriter ,
@@ -1141,6 +1141,8 @@ pub trait BatcherStorageReader: Send + Sync {
11411141 & self ,
11421142 height : BlockNumber ,
11431143 ) -> StorageResult < Option < PartialBlockHashComponents > > ;
1144+
1145+ fn get_block_hash ( & self , height : BlockNumber ) -> StorageResult < Option < BlockHash > > ;
11441146}
11451147
11461148impl BatcherStorageReader for StorageReader {
@@ -1224,6 +1226,10 @@ impl BatcherStorageReader for StorageReader {
12241226 ) -> StorageResult < Option < PartialBlockHashComponents > > {
12251227 self . begin_ro_txn ( ) ?. get_partial_block_hash_components ( & height)
12261228 }
1229+
1230+ fn get_block_hash ( & self , height : BlockNumber ) -> StorageResult < Option < BlockHash > > {
1231+ self . begin_ro_txn ( ) ?. get_block_hash ( & height)
1232+ }
12271233}
12281234
12291235#[ cfg_attr( test, automock) ]
You can’t perform that action at this time.
0 commit comments