mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-21 14:44:02 +01:00
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:
@@ -751,7 +751,7 @@ where
|
||||
// Step 5: Cancel any transactions with an expired TTL
|
||||
for tx in txs {
|
||||
if let Some(e) = tx.ttl_cutoff_height {
|
||||
if e >= tip.0 {
|
||||
if tip.0 >= e {
|
||||
wallet_lock!(wallet_inst, w);
|
||||
let parent_key_id = w.parent_key_id();
|
||||
tx::cancel_tx(&mut **w, keychain_mask, &parent_key_id, Some(tx.id), None)?;
|
||||
|
||||
Reference in New Issue
Block a user