add serde(default) specifier to ttl_blocks and payment_proof_recipient_address (#316)

This commit is contained in:
Yeastplume
2020-01-29 15:11:09 +00:00
committed by GitHub
parent a2560179ae
commit 14e126bb1e
+2
View File
@@ -92,9 +92,11 @@ pub struct InitTxArgs {
pub target_slate_version: Option<u16>,
/// Number of blocks from current after which TX should be ignored
#[serde(with = "secp_ser::opt_string_or_u64")]
#[serde(default)]
pub ttl_blocks: Option<u64>,
/// If set, require a payment proof for the particular recipient
#[serde(with = "dalek_ser::option_ov3_serde")]
#[serde(default)]
pub payment_proof_recipient_address: Option<OnionV3Address>,
/// If true, just return an estimate of the resulting slate, containing fees and amounts
/// locked without actually locking outputs or creating the transaction. Note if this is set to