Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
Prev Previous commit
Next Next commit
Remove todo, it's time to test
  • Loading branch information
boundless-forest committed Jun 17, 2022
commit 1393e25971be8dbc9f4321773c028c29fc8923d2
4 changes: 2 additions & 2 deletions modules/messages/src/inbound_lane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub enum ReceivalResult {
TooManyUnrewardedRelayers,
/// There are too many unconfirmed messages at the lane.
TooManyUnconfirmedMessages,
/// Pre-dispatch validation failed before message dispatch.
PreDispatchValidateFailed,
}

Expand Down Expand Up @@ -146,9 +147,8 @@ impl<S: InboundLaneStorage> InboundLane<S> {
key: MessageKey { lane_id: self.storage.id(), nonce },
data: message_data,
};
// if there are some extra message validation errors, reject this message
// if there are some extra pre-dispatch validation errors, reject this message.
if P::pre_dispatch(relayer_at_this_chain, &dispatch_message).is_err() {
// TODO: Update the type
return ReceivalResult::PreDispatchValidateFailed
}

Expand Down