mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-06 23:33:10 +00:00
21 lines
475 B
Rust
21 lines
475 B
Rust
use common::merkle_tree_public::TreeHashType;
|
|
use mempool::mempoolitem::MemPoolItem;
|
|
|
|
pub struct MempoolTransaction {
|
|
pub auth_tx: nssa::PublicTransaction,
|
|
}
|
|
|
|
impl From<nssa::PublicTransaction> for MempoolTransaction {
|
|
fn from(auth_tx: nssa::PublicTransaction) -> Self {
|
|
Self { auth_tx }
|
|
}
|
|
}
|
|
|
|
impl MemPoolItem for MempoolTransaction {
|
|
type Identifier = TreeHashType;
|
|
|
|
fn identifier(&self) -> Self::Identifier {
|
|
self.auth_tx.hash()
|
|
}
|
|
}
|