@@ -2403,6 +2403,9 @@ pub mod rpc_minimal {
2403
2403
commitment : Option < CommitmentConfig > ,
2404
2404
) -> Result < EpochInfo > ;
2405
2405
2406
+ #[ rpc( meta, name = "getGenesisHash" ) ]
2407
+ fn get_genesis_hash ( & self , meta : Self :: Metadata ) -> Result < String > ;
2408
+
2406
2409
#[ rpc( meta, name = "getHealth" ) ]
2407
2410
fn get_health ( & self , meta : Self :: Metadata ) -> Result < String > ;
2408
2411
@@ -2481,6 +2484,11 @@ pub mod rpc_minimal {
2481
2484
Ok ( bank. get_epoch_info ( ) )
2482
2485
}
2483
2486
2487
+ fn get_genesis_hash ( & self , meta : Self :: Metadata ) -> Result < String > {
2488
+ debug ! ( "get_genesis_hash rpc request received" ) ;
2489
+ Ok ( meta. genesis_hash . to_string ( ) )
2490
+ }
2491
+
2484
2492
fn get_health ( & self , meta : Self :: Metadata ) -> Result < String > {
2485
2493
match meta. health . check ( ) {
2486
2494
RpcHealthStatus :: Ok => Ok ( "ok" . to_string ( ) ) ,
@@ -3155,9 +3163,6 @@ pub mod rpc_full {
3155
3163
limit : Option < usize > ,
3156
3164
) -> Result < Vec < RpcPerfSample > > ;
3157
3165
3158
- #[ rpc( meta, name = "getGenesisHash" ) ]
3159
- fn get_genesis_hash ( & self , meta : Self :: Metadata ) -> Result < String > ;
3160
-
3161
3166
#[ rpc( meta, name = "getSignatureStatuses" ) ]
3162
3167
fn get_signature_statuses (
3163
3168
& self ,
@@ -3355,11 +3360,6 @@ pub mod rpc_full {
3355
3360
. collect ( ) )
3356
3361
}
3357
3362
3358
- fn get_genesis_hash ( & self , meta : Self :: Metadata ) -> Result < String > {
3359
- debug ! ( "get_genesis_hash rpc request received" ) ;
3360
- Ok ( meta. genesis_hash . to_string ( ) )
3361
- }
3362
-
3363
3363
fn get_signature_statuses (
3364
3364
& self ,
3365
3365
meta : Self :: Metadata ,
0 commit comments