@@ -8,12 +8,8 @@ use std::{
8
8
use anyhow:: { bail, Context } ;
9
9
use async_trait:: async_trait;
10
10
use bitcoin:: Address ;
11
- use bitcoin_da:: {
12
- service:: { get_relevant_blobs_from_txs, FINALITY_DEPTH } ,
13
- spec:: blob:: BlobWithSender ,
14
- } ;
11
+ use bitcoin_da:: service:: FINALITY_DEPTH ;
15
12
use bitcoincore_rpc:: { json:: AddressType :: Bech32m , Auth , Client , RpcApi } ;
16
- use citrea_primitives:: REVEAL_BATCH_PROOF_PREFIX ;
17
13
use futures:: TryStreamExt ;
18
14
use tokio:: { process:: Command , sync:: OnceCell , time:: sleep} ;
19
15
@@ -102,16 +98,6 @@ impl BitcoinNode {
102
98
Ok ( self . get_block_count ( ) . await ? - FINALITY_DEPTH + 1 )
103
99
}
104
100
105
- pub async fn get_relevant_blobs_from_block ( & self , height : u64 ) -> Result < Vec < BlobWithSender > > {
106
- let hash = self . get_block_hash ( height) . await ?;
107
- let block = self . get_block ( & hash) . await ?;
108
-
109
- Ok ( get_relevant_blobs_from_txs (
110
- block. txdata ,
111
- REVEAL_BATCH_PROOF_PREFIX ,
112
- ) )
113
- }
114
-
115
101
async fn wait_for_shutdown ( & self ) -> Result < ( ) > {
116
102
let timeout_duration = Duration :: from_secs ( 30 ) ;
117
103
let start = std:: time:: Instant :: now ( ) ;
0 commit comments