File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
core/node/da_clients/src/eigen Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,18 @@ impl DataAvailabilityClient for EigenDAClient {
84
84
& self ,
85
85
dispatch_request_id : String ,
86
86
) -> Result < Option < FinalityResponse > , DAError > {
87
- // TODO: return a quick confirmation in `dispatch_blob` and await here
88
- Ok ( Some ( FinalityResponse {
89
- blob_id : dispatch_request_id,
90
- } ) )
87
+ let inclusion_data = self
88
+ . client
89
+ . get_inclusion_data ( & dispatch_request_id)
90
+ . await
91
+ . map_err ( to_retriable_da_error) ?;
92
+ if let Some ( _) = inclusion_data {
93
+ Ok ( Some ( FinalityResponse {
94
+ blob_id : dispatch_request_id,
95
+ } ) )
96
+ } else {
97
+ Ok ( None )
98
+ }
91
99
}
92
100
93
101
async fn get_inclusion_data ( & self , blob_id : & str ) -> Result < Option < InclusionData > , DAError > {
You can’t perform that action at this time.
0 commit comments