From 97f17d360993336c7858f0a7d3e6b72acda5cb3f Mon Sep 17 00:00:00 2001 From: Mike Zak Date: Sun, 28 Aug 2022 15:17:46 +0300 Subject: [PATCH] Amend comment --- cmd/kaspawallet/send.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/kaspawallet/send.go b/cmd/kaspawallet/send.go index 3dff7cf15..459252617 100644 --- a/cmd/kaspawallet/send.go +++ b/cmd/kaspawallet/send.go @@ -64,7 +64,8 @@ func send(conf *sendConfig) error { fmt.Printf("Broadcasting %d transactions\n", len(signedTransactions)) } - // Create separate context to prolong the timeout,since broadcastan take long + // Since we waited for user input when getting the password, which could take unbound amount of time - + // create a new context for broadcast, to reset the timeout. broadcastCtx, broadcastCancel := context.WithTimeout(context.Background(), daemonTimeout) defer broadcastCancel()