@@ -818,7 +818,7 @@ where
818818 let reciepts_len = receipts. len ( ) ;
819819 let mut reciepts_signers = Vec :: with_capacity ( reciepts_len) ;
820820 let mut encoded_signatures = Vec :: with_capacity ( reciepts_len) ;
821- let mut allocation_ids = Vec :: with_capacity ( reciepts_len) ;
821+ let mut collection_ids = Vec :: with_capacity ( reciepts_len) ;
822822 let mut payers = Vec :: with_capacity ( reciepts_len) ;
823823 let mut data_services = Vec :: with_capacity ( reciepts_len) ;
824824 let mut service_providers = Vec :: with_capacity ( reciepts_len) ;
@@ -828,7 +828,7 @@ where
828828 let mut error_logs = Vec :: with_capacity ( reciepts_len) ;
829829
830830 for ( receipt, receipt_error) in receipts {
831- let allocation_id = receipt. message . allocation_id ;
831+ let collection_id = receipt. message . collection_id ;
832832 let payer = receipt. message . payer ;
833833 let data_service = receipt. message . data_service ;
834834 let service_provider = receipt. message . service_provider ;
@@ -841,13 +841,13 @@ where
841841 } ) ?;
842842 tracing:: debug!(
843843 "Receipt for allocation {} and signer {} failed reason: {}" ,
844- allocation_id . encode_hex( ) ,
844+ collection_id . encode_hex( ) ,
845845 receipt_signer. encode_hex( ) ,
846846 receipt_error
847847 ) ;
848848 reciepts_signers. push ( receipt_signer. encode_hex ( ) ) ;
849849 encoded_signatures. push ( encoded_signature) ;
850- allocation_ids . push ( allocation_id . encode_hex ( ) ) ;
850+ collection_ids . push ( collection_id . encode_hex ( ) ) ;
851851 payers. push ( payer. encode_hex ( ) ) ;
852852 data_services. push ( data_service. encode_hex ( ) ) ;
853853 service_providers. push ( service_provider. encode_hex ( ) ) ;
@@ -860,7 +860,7 @@ where
860860 r#"INSERT INTO tap_horizon_receipts_invalid (
861861 signer_address,
862862 signature,
863- allocation_id ,
863+ collection_id ,
864864 payer,
865865 data_service,
866866 service_provider,
@@ -871,7 +871,7 @@ where
871871 ) SELECT * FROM UNNEST(
872872 $1::CHAR(40)[],
873873 $2::BYTEA[],
874- $3::CHAR(40 )[],
874+ $3::CHAR(64 )[],
875875 $4::CHAR(40)[],
876876 $5::CHAR(40)[],
877877 $6::CHAR(40)[],
@@ -882,7 +882,7 @@ where
882882 )"# ,
883883 & reciepts_signers,
884884 & encoded_signatures,
885- & allocation_ids ,
885+ & collection_ids ,
886886 & payers,
887887 & data_services,
888888 & service_providers,
@@ -1159,7 +1159,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
11591159 FROM
11601160 tap_horizon_receipts_invalid
11611161 WHERE
1162- allocation_id = $1
1162+ collection_id = $1
11631163 AND signer_address IN (SELECT unnest($2::text[]))
11641164 "# ,
11651165 self . allocation_id. encode_hex( ) ,
@@ -1205,7 +1205,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
12051205 FROM
12061206 tap_horizon_receipts
12071207 WHERE
1208- allocation_id = $1
1208+ collection_id = $1
12091209 AND service_provider = $2
12101210 AND id <= $3
12111211 AND signer_address IN (SELECT unnest($4::text[]))
@@ -1258,7 +1258,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
12581258 UPDATE tap_horizon_ravs
12591259 SET last = true
12601260 WHERE
1261- allocation_id = $1
1261+ collection_id = $1
12621262 AND payer = $2
12631263 AND service_provider = $3
12641264 "# ,
0 commit comments