Amend comment

This commit is contained in:
Mike Zak 2022-08-28 15:17:46 +03:00
parent 632e94af47
commit 97f17d3609

View File

@ -64,7 +64,8 @@ func send(conf *sendConfig) error {
fmt.Printf("Broadcasting %d transactions\n", len(signedTransactions)) 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) broadcastCtx, broadcastCancel := context.WithTimeout(context.Background(), daemonTimeout)
defer broadcastCancel() defer broadcastCancel()