File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,9 @@ impl GetTx for EsploraBlockchain {
125
125
#[ maybe_async]
126
126
impl GetBlockHash for EsploraBlockchain {
127
127
fn get_block_hash ( & self , height : u64 ) -> Result < BlockHash , Error > {
128
- let block_header = await_or_block ! ( self . url_client. get_header( height as u32 ) ) ?;
129
- Ok ( block_header. block_hash ( ) )
128
+ Ok ( await_or_block ! ( self
129
+ . url_client
130
+ . get_block_hash( height as u32 ) ) ?)
130
131
}
131
132
}
132
133
Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ impl GetTx for EsploraBlockchain {
110
110
111
111
impl GetBlockHash for EsploraBlockchain {
112
112
fn get_block_hash ( & self , height : u64 ) -> Result < BlockHash , Error > {
113
- let block_header = self . url_client . get_header ( height as u32 ) ?;
114
- Ok ( block_header. block_hash ( ) )
113
+ Ok ( self . url_client . get_block_hash ( height as u32 ) ?)
115
114
}
116
115
}
117
116
You can’t perform that action at this time.
0 commit comments