File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ impl<
216216 & self ,
217217 timestamp_buffer_ns : u64 ,
218218 min_timestamp_ns : u64 ,
219- ) -> Result < ( Vec < SignedReceipt > , Vec < SignedReceipt > ) , Error > {
219+ ) -> Result < ( Vec < SignedReceipt > , Vec < ReceivedReceipt > ) , Error > {
220220 let max_timestamp_ns = crate :: get_current_timestamp_u64_ns ( ) ? - timestamp_buffer_ns;
221221
222222 if min_timestamp_ns > max_timestamp_ns {
@@ -234,7 +234,7 @@ impl<
234234 } ) ?;
235235
236236 let mut accepted_signed_receipts = Vec :: < SignedReceipt > :: new ( ) ;
237- let mut failed_signed_receipts = Vec :: < SignedReceipt > :: new ( ) ;
237+ let mut failed_signed_receipts = Vec :: < ReceivedReceipt > :: new ( ) ;
238238
239239 let mut received_receipts: Vec < ReceivedReceipt > =
240240 received_receipts. into_iter ( ) . map ( |e| e. 1 ) . collect ( ) ;
@@ -252,7 +252,7 @@ impl<
252252 if received_receipt. is_accepted ( ) {
253253 accepted_signed_receipts. push ( received_receipt. signed_receipt ) ;
254254 } else {
255- failed_signed_receipts. push ( received_receipt. signed_receipt ) ;
255+ failed_signed_receipts. push ( received_receipt) ;
256256 }
257257 }
258258
Original file line number Diff line number Diff line change 44use serde:: { Deserialize , Serialize } ;
55
66use super :: { SignedRAV , SignedReceipt } ;
7- use crate :: receipt_aggregate_voucher:: ReceiptAggregateVoucher ;
7+ use crate :: { receipt_aggregate_voucher:: ReceiptAggregateVoucher , tap_receipt :: ReceivedReceipt } ;
88
99#[ derive( Debug , Serialize , Deserialize , Clone ) ]
1010
1111pub struct RAVRequest {
1212 pub valid_receipts : Vec < SignedReceipt > ,
1313 pub previous_rav : Option < SignedRAV > ,
14- pub invalid_receipts : Vec < SignedReceipt > ,
14+ pub invalid_receipts : Vec < ReceivedReceipt > ,
1515 pub expected_rav : ReceiptAggregateVoucher ,
1616}
You can’t perform that action at this time.
0 commit comments