Skip to content

Commit

Permalink
add serde(default) specifier to ttl_blocks and payment_proof_recipien…
Browse files Browse the repository at this point in the history
…t_address (#316)
  • Loading branch information
yeastplume committed Jan 29, 2020
1 parent a256017 commit 14e126b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libwallet/src/api_impl/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e126b

Please sign in to comment.