Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Aug 20, 2024
1 parent fe93e35 commit 0abb8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 1 addition & 6 deletions pallets/propagation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,7 @@ pub mod pallet {
block_number: BlockNumberFor<T>,
) -> Result<(), http::Error> {
if let Some(attestations_to_request) =
pallet_attestation::Pallet::<T>::attestation_requests(
// block_number.saturating_sub(1u32.into()),
block_number,
)
pallet_attestation::Pallet::<T>::attestation_requests(block_number)
{
if attestations_to_request.is_empty() {
return Ok(());
Expand All @@ -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);
Expand Down

0 comments on commit 0abb8be

Please sign in to comment.