pub struct ValidatedTransaction<'a> {
pub tx: &'a Transaction,
pub entries: Vec<UtxoEntry>,
pub calculated_fee: u64,
}Expand description
Represents a validated transaction with populated UTXO entry data and a calculated fee
Fields§
§tx: &'a Transaction§entries: Vec<UtxoEntry>§calculated_fee: u64Implementations§
Source§impl<'a> ValidatedTransaction<'a>
impl<'a> ValidatedTransaction<'a>
pub fn new(populated_tx: PopulatedTransaction<'a>, calculated_fee: u64) -> Self
pub fn new_coinbase(tx: &'a Transaction) -> Self
Trait Implementations§
Source§impl<'a> VerifiableTransaction for ValidatedTransaction<'a>
impl<'a> VerifiableTransaction for ValidatedTransaction<'a>
fn tx(&self) -> &Transaction
Source§fn populated_input(&self, index: usize) -> (&TransactionInput, &UtxoEntry)
fn populated_input(&self, index: usize) -> (&TransactionInput, &UtxoEntry)
Returns the
i’th populated inputSource§fn populated_inputs(&self) -> PopulatedInputIterator<'_, Self> ⓘwhere
Self: Sized,
fn populated_inputs(&self) -> PopulatedInputIterator<'_, Self> ⓘwhere
Self: Sized,
Returns an iterator over populated
(input, entry) pairsfn inputs(&self) -> &[TransactionInput]
fn outputs(&self) -> &[TransactionOutput]
fn is_coinbase(&self) -> bool
fn id(&self) -> TransactionId
Auto Trait Implementations§
impl<'a> Freeze for ValidatedTransaction<'a>
impl<'a> RefUnwindSafe for ValidatedTransaction<'a>
impl<'a> Send for ValidatedTransaction<'a>
impl<'a> Sync for ValidatedTransaction<'a>
impl<'a> Unpin for ValidatedTransaction<'a>
impl<'a> UnwindSafe for ValidatedTransaction<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more