@@ -78,17 +78,11 @@ pub trait BlockReader:
7878 /// Returns `None` if block is not found.
7979 fn block ( & self , id : BlockHashOrNumber ) -> ProviderResult < Option < Self :: Block > > ;
8080
81- /// Returns the pending block if available
82- ///
83- /// Note: This returns a [`SealedBlock`] because it's expected that this is sealed by the
84- /// provider and the caller does not know the hash.
85- fn pending_block ( & self ) -> ProviderResult < Option < SealedBlock < Self :: Block > > > ;
86-
8781 /// Returns the pending block if available
8882 ///
8983 /// Note: This returns a [`RecoveredBlock`] because it's expected that this is sealed by
9084 /// the provider and the caller does not know the hash.
91- fn pending_block_with_senders ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > ;
85+ fn pending_block ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > ;
9286
9387 /// Returns the pending block and receipts if available.
9488 #[ expect( clippy:: type_complexity) ]
@@ -165,12 +159,9 @@ impl<T: BlockReader> BlockReader for Arc<T> {
165159 fn block ( & self , id : BlockHashOrNumber ) -> ProviderResult < Option < Self :: Block > > {
166160 T :: block ( self , id)
167161 }
168- fn pending_block ( & self ) -> ProviderResult < Option < SealedBlock < Self :: Block > > > {
162+ fn pending_block ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > {
169163 T :: pending_block ( self )
170164 }
171- fn pending_block_with_senders ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > {
172- T :: pending_block_with_senders ( self )
173- }
174165 fn pending_block_and_receipts (
175166 & self ,
176167 ) -> ProviderResult < Option < ( SealedBlock < Self :: Block > , Vec < Self :: Receipt > ) > > {
@@ -226,12 +217,9 @@ impl<T: BlockReader> BlockReader for &T {
226217 fn block ( & self , id : BlockHashOrNumber ) -> ProviderResult < Option < Self :: Block > > {
227218 T :: block ( self , id)
228219 }
229- fn pending_block ( & self ) -> ProviderResult < Option < SealedBlock < Self :: Block > > > {
220+ fn pending_block ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > {
230221 T :: pending_block ( self )
231222 }
232- fn pending_block_with_senders ( & self ) -> ProviderResult < Option < RecoveredBlock < Self :: Block > > > {
233- T :: pending_block_with_senders ( self )
234- }
235223 fn pending_block_and_receipts (
236224 & self ,
237225 ) -> ProviderResult < Option < ( SealedBlock < Self :: Block > , Vec < Self :: Receipt > ) > > {
0 commit comments