diff --git a/crates/shared/src/types.rs b/crates/shared/src/types.rs index 40e9017eb..49b558186 100644 --- a/crates/shared/src/types.rs +++ b/crates/shared/src/types.rs @@ -87,8 +87,8 @@ pub struct OcwMessageProactiveRefresh { #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] #[derive(Clone, Encode, Decode, Debug, Eq, PartialEq, TypeInfo)] pub struct OcwMessageAttestationRequest { + /// The account ids of all TSS servers who must submit an attestation this block pub tss_account_ids: Vec<[u8; 32]>, - // pub block_number: BlockNumber, } /// 256-bit hashing algorithms for deriving the point to be signed. diff --git a/pallets/propagation/src/lib.rs b/pallets/propagation/src/lib.rs index a8b3e44cc..532d2b173 100644 --- a/pallets/propagation/src/lib.rs +++ b/pallets/propagation/src/lib.rs @@ -316,10 +316,7 @@ pub mod pallet { block_number: BlockNumberFor, ) -> Result<(), http::Error> { if let Some(attestations_to_request) = - pallet_attestation::Pallet::::attestation_requests( - // block_number.saturating_sub(1u32.into()), - block_number, - ) + pallet_attestation::Pallet::::attestation_requests(block_number) { if attestations_to_request.is_empty() { return Ok(()); @@ -344,11 +341,9 @@ pub mod pallet { .send() .map_err(|_| http::Error::IoError)?; - // We await response, same as in fn get() let response = pending.try_wait(deadline).map_err(|_| http::Error::DeadlineReached)??; - // check response code if response.code != 200 { log::warn!("Unexpected status code: {}", response.code); return Err(http::Error::Unknown);