pub struct WalletReservationsHeldResult {
pub reserved: Vec<ReservedCoin>,
pub as_of_unix: u64,
}Expand description
control.wallet.reservations.held — every coin currently committed to an in-flight spend.
§An empty list means EMPTY, and an error means UNKNOWN
reserved: [] is a positive statement that nothing is held, and a caller may select freely on
it. A node that cannot read its reservation set answers
WalletReservationsUnavailable
and NEVER an empty list — the two demand opposite actions, and collapsing them restores exactly
the cross-process double-select this method exists to prevent.
§This narrows SELECTION, never BALANCE
A reserved coin is still the user’s money and still counts toward what they hold. Subtracting these from a balance would report a shortfall the user does not have.
§No count field
The list is the answer and its length is the count. A separate number could disagree with the rows printed beside it.
Fields§
§reserved: Vec<ReservedCoin>The held coins, each with its holding reservation and expiry.
as_of_unix: u64The node’s OWN clock, in unix seconds, at the moment it answered.
Reported so a client can measure skew against the expires_at_unix values it just received.
The caller never supplies a time — see
WalletReservationsHeldParams.
Trait Implementations§
Source§impl Clone for WalletReservationsHeldResult
impl Clone for WalletReservationsHeldResult
Source§fn clone(&self) -> WalletReservationsHeldResult
fn clone(&self) -> WalletReservationsHeldResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more