Add TTL Option to command line (#273)

* re-insert v2 slate

* reinstate version conversions

* rustfmt

* add and test versioning checks against 2.0.0 wallets

* rustfmt

* fix to invoice file output

* doctest fix

* remove target slate version from command line options

* add ttl option to send_tx and pay commands

* rustfmt
This commit is contained in:
Yeastplume
2019-12-04 13:04:28 +00:00
committed by GitHub
parent 86e6f511c3
commit e2ad2b3880
4 changed files with 23 additions and 1 deletions
+4
View File
@@ -253,6 +253,7 @@ pub struct SendArgs {
pub max_outputs: usize,
pub target_slate_version: Option<u16>,
pub payment_proof_address: Option<String>,
pub ttl_blocks: Option<u64>,
}
pub fn send<L, C, K>(
@@ -302,6 +303,7 @@ where
message: args.message.clone(),
target_slate_version: args.target_slate_version,
payment_proof_recipient_address,
ttl_blocks: args.ttl_blocks,
send_args: None,
..Default::default()
};
@@ -529,6 +531,7 @@ pub struct ProcessInvoiceArgs {
pub max_outputs: usize,
pub input: String,
pub estimate_selection_strategies: bool,
pub ttl_blocks: Option<u64>,
}
/// Process invoice
@@ -574,6 +577,7 @@ where
num_change_outputs: 1u32,
selection_strategy_is_use_all: args.selection_strategy == "all",
message: args.message.clone(),
ttl_blocks: args.ttl_blocks,
send_args: None,
..Default::default()
};