tx-pool: add Default impl for TransactionOrigin (#10013)

This commit is contained in:
Thomas Coratger
2024-08-02 12:50:46 +02:00
committed by GitHub
parent d6388fdfa9
commit b2b1b5349d

View File

@ -539,9 +539,10 @@ pub struct NewBlobSidecar {
/// ///
/// Depending on where the transaction was picked up, it affects how the transaction is handled /// Depending on where the transaction was picked up, it affects how the transaction is handled
/// internally, e.g. limits for simultaneous transaction of one sender. /// internally, e.g. limits for simultaneous transaction of one sender.
#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
pub enum TransactionOrigin { pub enum TransactionOrigin {
/// Transaction is coming from a local source. /// Transaction is coming from a local source.
#[default]
Local, Local,
/// Transaction has been received externally. /// Transaction has been received externally.
/// ///