File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ macro_rules! impl_client_v17__sync_with_validation_interface_queue {
8282macro_rules! impl_client_v17__reconsider_block {
8383 ( ) => {
8484 impl Client {
85- pub fn reconsider_block( & self , blockhash : bitcoin:: BlockHash ) -> Result <( ) > {
86- self . call( "reconsiderblock" , & [ into_json( blockhash ) ?] )
85+ pub fn reconsider_block( & self , block_hash : bitcoin:: BlockHash ) -> Result <( ) > {
86+ self . call( "reconsiderblock" , & [ into_json( block_hash ) ?] )
8787 }
8888 }
8989 } ;
Original file line number Diff line number Diff line change 1414macro_rules! impl_client_v23__get_block_from_peer {
1515 ( ) => {
1616 impl Client {
17- pub fn get_block_from_peer( & self , blockhash: BlockHash , peer_id: u32 ) -> Result <( ) > {
18- match self . call( "getblockfrompeer" , & [ into_json( blockhash) ?, into_json( peer_id) ?] ) {
17+ pub fn get_block_from_peer( & self , block_hash: BlockHash , peer_id: u32 ) -> Result <( ) > {
18+ match self . call( "getblockfrompeer" , & [ into_json( block_hash) ?, into_json( peer_id) ?] )
19+ {
1920 Ok ( serde_json:: Value :: Object ( ref map) ) if map. is_empty( ) => Ok ( ( ) ) ,
2021 Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
2122 Err ( err) => Err ( err. into( ) ) ,
@@ -36,8 +37,8 @@ macro_rules! impl_client_v23__get_deployment_info {
3637 }
3738
3839 /// Query deployment info at the given block hash.
39- pub fn get_deployment_info( & self , blockhash : & BlockHash ) -> Result <GetDeploymentInfo > {
40- self . call( "getdeploymentinfo" , & [ into_json( blockhash ) ?] )
40+ pub fn get_deployment_info( & self , block_hash : & BlockHash ) -> Result <GetDeploymentInfo > {
41+ self . call( "getdeploymentinfo" , & [ into_json( block_hash ) ?] )
4142 }
4243 }
4344 } ;
You can’t perform that action at this time.
0 commit comments