twelvepool 0.5.0

Watch for new txs in a Terra node mempool
Documentation
use std::time::SystemTime;

use crate::tx::Tx;

pub struct MempoolItem {
    pub timestamp: SystemTime,
    pub tx: Tx,
    pub tx_hash: String,
}

impl MempoolItem {
    pub fn new(tx: Tx, tx_hash: String) -> MempoolItem {
        MempoolItem {
            timestamp: SystemTime::now(),
            tx,
            tx_hash,
        }
    }
}