pub struct WalletResetCoinDbParams {
pub confirm: bool,
}Expand description
control.wallet.resetCoinDb params: discard the cached coin database and re-sync from chain.
§confirm is the on-wire acknowledgement, not a default
The field defaults to false under Deserialize so an OMITTED field reads exactly like an
explicit false – a client that forgot the flag gets the same refusal as one that typed it. The
handler MUST refuse with INVALID_PARAMS unless confirm == true; nothing about deserializing
this struct performs the reset.
§No key material is affected
Every table this clears is chain-derived and reproduced by syncing; a seed or key is never
touched. See WalletResetCoinDbResult for what is reported
back, and the handler’s own contract for the SpendInFlight refusal that protects a hold in
progress.
Fields§
§confirm: boolMust be true or the call is refused as INVALID_PARAMS. Defaults to false when omitted,
so an omitted field is refused exactly like an explicit one.
Trait Implementations§
Source§impl Clone for WalletResetCoinDbParams
impl Clone for WalletResetCoinDbParams
Source§fn clone(&self) -> WalletResetCoinDbParams
fn clone(&self) -> WalletResetCoinDbParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more