neptune-mempool 0.14.0

Neptune transaction mempool: the Mempool store, its transaction-id and upgrade-priority abstractions, and the proof-quality policy used for gossip and replacement
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use neptune_consensus::transaction::primitive_witness::PrimitiveWitness;

/// A primitive-witness backed transaction that must be upgraded to be valid
/// under a new mutator set.
#[derive(Debug, Clone)]
pub struct PrimitiveWitnessUpdate {
    /// The deprecated primitive witness, before applying a mutator set update.
    pub old_primitive_witness: PrimitiveWitness,
}

impl PrimitiveWitnessUpdate {
    pub(crate) fn new(old_primitive_witness: PrimitiveWitness) -> Self {
        Self {
            old_primitive_witness,
        }
    }
}