mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-09 08:43:12 +00:00
21 lines
520 B
Rust
21 lines
520 B
Rust
use common::{merkle_tree_public::TreeHashType, transaction::AuthenticatedTransaction};
|
|
use mempool::mempoolitem::MemPoolItem;
|
|
|
|
pub struct MempoolTransaction {
|
|
pub auth_tx: AuthenticatedTransaction,
|
|
}
|
|
|
|
impl From<AuthenticatedTransaction> for MempoolTransaction {
|
|
fn from(auth_tx: AuthenticatedTransaction) -> Self {
|
|
Self { auth_tx }
|
|
}
|
|
}
|
|
|
|
impl MemPoolItem for MempoolTransaction {
|
|
type Identifier = TreeHashType;
|
|
|
|
fn identifier(&self) -> Self::Identifier {
|
|
*self.auth_tx.hash()
|
|
}
|
|
}
|