From 109f43202ad28c9dd990bbded5f9bc686ce470e0 Mon Sep 17 00:00:00 2001 From: Andrew Chiw Date: Wed, 27 Feb 2019 18:21:08 +0100 Subject: [PATCH] cmd: tx spend accepts ttl, nonce TODO: ACTUALLY IMPLEMENT IT --- cmd/account.go | 2 ++ cmd/tx.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/account.go b/cmd/account.go index 08a140b2..01185f34 100644 --- a/cmd/account.go +++ b/cmd/account.go @@ -28,6 +28,8 @@ var ( accountFileName string password string fee uint64 + ttl uint64 + nonce uint64 ) // accountCmd implements the account command diff --git a/cmd/tx.go b/cmd/tx.go index 8caebf61..f2e9a56f 100644 --- a/cmd/tx.go +++ b/cmd/tx.go @@ -109,4 +109,6 @@ func init() { // tx spend command txSpendCmd.Flags().Uint64Var(&fee, "fee", aeternity.Config.Client.Fee, fmt.Sprintf("Set the transaction fee (default=%d)", aeternity.Config.Client.Fee)) + txSpendCmd.Flags().Uint64Var(&ttl, "ttl", aeternity.Config.Client.TTL, fmt.Sprintf("Set the TTL in keyblocks (default=%d)", aeternity.Config.Client.TTL)) + txSpendCmd.Flags().Uint64Var(&nonce, "nonce", 0, fmt.Sprint("Set the transaction nonce, if not it will be automatically generated")) }