@@ -668,7 +668,7 @@ mod rpc_compat {
668668 {
669669 /// Converts the block into an RPC [`Block`] with the given [`BlockTransactionsKind`].
670670 ///
671- /// The `tx_resp_builder ` closure transforms each transaction into the desired response
671+ /// The `converter ` closure transforms each transaction into the desired response
672672 /// type.
673673 ///
674674 /// `header_builder` transforms the block header into RPC representation. It takes the
@@ -677,7 +677,7 @@ mod rpc_compat {
677677 pub fn into_rpc_block < T , RpcH , F , E > (
678678 self ,
679679 kind : BlockTransactionsKind ,
680- tx_resp_builder : F ,
680+ converter : F ,
681681 header_builder : impl FnOnce ( SealedHeader < B :: Header > , usize ) -> Result < RpcH , E > ,
682682 ) -> Result < Block < T , RpcH > , E >
683683 where
@@ -688,9 +688,7 @@ mod rpc_compat {
688688 {
689689 match kind {
690690 BlockTransactionsKind :: Hashes => self . into_rpc_block_with_tx_hashes ( header_builder) ,
691- BlockTransactionsKind :: Full => {
692- self . into_rpc_block_full ( tx_resp_builder, header_builder)
693- }
691+ BlockTransactionsKind :: Full => self . into_rpc_block_full ( converter, header_builder) ,
694692 }
695693 }
696694
@@ -699,7 +697,7 @@ mod rpc_compat {
699697 /// For transaction hashes, only necessary parts are cloned for efficiency.
700698 /// For full transactions, the entire block is cloned.
701699 ///
702- /// The `tx_resp_builder ` closure transforms each transaction into the desired response
700+ /// The `converter ` closure transforms each transaction into the desired response
703701 /// type.
704702 ///
705703 /// `header_builder` transforms the block header into RPC representation. It takes the
@@ -708,7 +706,7 @@ mod rpc_compat {
708706 pub fn clone_into_rpc_block < T , RpcH , F , E > (
709707 & self ,
710708 kind : BlockTransactionsKind ,
711- tx_resp_builder : F ,
709+ converter : F ,
712710 header_builder : impl FnOnce ( SealedHeader < B :: Header > , usize ) -> Result < RpcH , E > ,
713711 ) -> Result < Block < T , RpcH > , E >
714712 where
@@ -720,7 +718,7 @@ mod rpc_compat {
720718 match kind {
721719 BlockTransactionsKind :: Hashes => self . to_rpc_block_with_tx_hashes ( header_builder) ,
722720 BlockTransactionsKind :: Full => {
723- self . clone ( ) . into_rpc_block_full ( tx_resp_builder , header_builder)
721+ self . clone ( ) . into_rpc_block_full ( converter , header_builder)
724722 }
725723 }
726724 }
@@ -769,10 +767,10 @@ mod rpc_compat {
769767 /// Converts the block into an RPC [`Block`] with full transaction objects.
770768 ///
771769 /// Returns [`BlockTransactions::Full`] with complete transaction data.
772- /// The `tx_resp_builder ` closure transforms each transaction with its metadata.
770+ /// The `converter ` closure transforms each transaction with its metadata.
773771 pub fn into_rpc_block_full < T , RpcHeader , F , E > (
774772 self ,
775- tx_resp_builder : F ,
773+ converter : F ,
776774 header_builder : impl FnOnce ( SealedHeader < B :: Header > , usize ) -> Result < RpcHeader , E > ,
777775 ) -> Result < Block < T , RpcHeader > , E >
778776 where
@@ -803,7 +801,7 @@ mod rpc_compat {
803801 index : Some ( idx as u64 ) ,
804802 } ;
805803
806- tx_resp_builder ( Recovered :: new_unchecked ( tx, sender) , tx_info)
804+ converter ( Recovered :: new_unchecked ( tx, sender) , tx_info)
807805 } )
808806 . collect :: < Result < Vec < _ > , E > > ( ) ?;
809807
0 commit comments