pub struct Spending {
pub fees: u64,
pub missing: Vec<OutPoint>,
pub deficits: Vec<Txid>,
pub premature: Vec<OutPoint>,
pub seqlock_violations: Vec<OutPoint>,
pub seqlock_unknown: usize,
pub resolved: Vec<(usize, usize, TxOut)>,
}Expand description
The block’s spending, resolved against the UTXO set and the block itself
(blocks.js #resolveSpending). With a full UTXO set nothing is
“unresolved”: a missing coin is a definite violation.
Fields§
§fees: u64Total fees of the non-coinbase transactions.
missing: Vec<OutPoint>Inputs spending a coin that does not exist or was spent earlier in the block.
deficits: Vec<Txid>Transactions whose outputs exceed their inputs.
premature: Vec<OutPoint>Inputs spending an immature coinbase.
seqlock_violations: Vec<OutPoint>BIP 68 violations.
seqlock_unknown: usizeBIP 68 locks this context cannot judge (time-based).
resolved: Vec<(usize, usize, TxOut)>Every resolved input: (transaction index, input index, its prevout).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spending
impl RefUnwindSafe for Spending
impl Send for Spending
impl Sync for Spending
impl Unpin for Spending
impl UnsafeUnpin for Spending
impl UnwindSafe for Spending
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more