forest/message_pool/msgpool/events.rs
1// Copyright 2019-2026 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4//! Event types published by the pending pool.
5
6use crate::message::SignedMessage;
7
8pub(in crate::message_pool) const MPOOL_UPDATE_CHANNEL_CAPACITY: usize = 256;
9
10/// A change to the pending pool.
11#[allow(dead_code)] // TODO: This will be used in https://github.com/ChainSafe/forest/pull/6941
12#[derive(Clone, Debug)]
13pub enum MpoolUpdate {
14 Add(SignedMessage),
15 Remove(SignedMessage),
16}