@@ -25,9 +25,8 @@ use crate::types::{
25
25
BlockHeaderPrintable , BlockPrintable , LocatedTxKernel , OutputListing , OutputPrintable , Tip ,
26
26
Version ,
27
27
} ;
28
- use crate :: util;
29
- #[ cfg( feature = "marketplace" ) ]
30
- use crate :: { Libp2pMessages , Libp2pPeers } ;
28
+
29
+ use crate :: { util, Libp2pMessages , Libp2pPeers } ;
31
30
32
31
/// Public definition used to generate Node jsonrpc api.
33
32
/// * When running `grin` with defaults, the V2 api is available at
@@ -863,7 +862,7 @@ pub trait ForeignRpc: Sync + Send {
863
862
```
864
863
*/
865
864
fn push_transaction ( & self , tx : Transaction , fluff : Option < bool > ) -> Result < ( ) , ErrorKind > ;
866
- /*
865
+
867
866
/**
868
867
Networked version of [Owner::get_libp2p_peers](struct.Owner.html#method.get_libp2p_peers).
869
868
@@ -895,17 +894,14 @@ pub trait ForeignRpc: Sync + Send {
895
894
# );
896
895
```
897
896
*/
898
- #[cfg(feature = "marketplace")]
899
897
fn get_libp2p_peers ( & self ) -> Result < Libp2pPeers , ErrorKind > ;
900
898
901
-
902
899
/**
903
900
Networked version of [Owner::get_libp2p_messages](struct.Owner.html#method.get_libp2p_messages).
904
901
905
902
// No example because if current time dynamic nature.
906
903
*/
907
904
fn get_libp2p_messages ( & self ) -> Result < Libp2pMessages , ErrorKind > ;
908
- */
909
905
}
910
906
911
907
impl < B , P , V > ForeignRpc for Foreign < B , P , V >
@@ -1032,16 +1028,12 @@ where
1032
1028
fn push_transaction ( & self , tx : Transaction , fluff : Option < bool > ) -> Result < ( ) , ErrorKind > {
1033
1029
Foreign :: push_transaction ( self , tx, fluff) . map_err ( |e| e. kind ( ) . clone ( ) )
1034
1030
}
1035
- /*
1036
- #[cfg(feature = "marketplace")]
1037
1031
fn get_libp2p_peers ( & self ) -> Result < Libp2pPeers , ErrorKind > {
1038
1032
Foreign :: get_libp2p_peers ( self ) . map_err ( |e| e. kind ( ) . clone ( ) )
1039
1033
}
1040
- #[cfg(feature = "marketplace")]
1041
1034
fn get_libp2p_messages ( & self ) -> Result < Libp2pMessages , ErrorKind > {
1042
1035
Foreign :: get_libp2p_messages ( self ) . map_err ( |e| e. kind ( ) . clone ( ) )
1043
1036
}
1044
- */
1045
1037
}
1046
1038
1047
1039
#[ doc( hidden) ]
0 commit comments