Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Add a limit to the cross-chain messages submitted #21

Open
en opened this issue Aug 10, 2021 · 0 comments
Open

Add a limit to the cross-chain messages submitted #21

en opened this issue Aug 10, 2021 · 0 comments

Comments

@en
Copy link
Member

en commented Aug 10, 2021

see snowfork:

134         /// Submit message on the outbound channel
135         pub fn submit(who: &T::AccountId, target: H160, payload: &[u8]) -> DispatchResult {
140                 ensure!(
141                         MessageQueue::decode_len().unwrap_or(0) < T::MaxMessagesPerCommit::get(),
142                         Error::<T>::QueueSizeLimitReached,
143                 );
144                 ensure!(
145                         payload.len() <= T::MaxMessagePayloadSize::get(),
146                         Error::<T>::PayloadTooLarge,
147                 );
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant