From 05a2384afd7b02894e1ee57970e5a06ac77acb29 Mon Sep 17 00:00:00 2001 From: Xavier Perret <xa.perret@outlook.com> Date: Sun, 30 Oct 2022 14:42:01 +0100 Subject: [PATCH] changed the print --- app/command-line/userinput.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/command-line/userinput.go b/app/command-line/userinput.go index 306a6ca..0533283 100644 --- a/app/command-line/userinput.go +++ b/app/command-line/userinput.go @@ -164,10 +164,10 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) { break case "2": fmt.Println("You chose to rate a transaction") - fmt.Println("We will ask you for an index of a transaction to rate") + fmt.Println("We will ask you for an id of a transaction to rate") fmt.Println("The given node will send a request to all its neighbours to rate the transaction") fmt.Println("The node will then print the result of the rating") - fmt.Print("\nPlease enter the index of the transaction you want to rate:") + fmt.Print("\nPlease enter the id of the transaction you want to rate:") var transID string _, err := fmt.Scanln(&transID) if err != nil { @@ -200,10 +200,10 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) { break case "3": fmt.Println("You chose to fake a transaction") - fmt.Println("We will ask you for an index of a transaction to fake") + fmt.Println("We will ask you for the id of a transaction to fake") fmt.Println("and the node you want to ask to fake it") fmt.Println("The node will receive the request and change the transaction with a fake one") - fmt.Print("\nPlease enter the index of the transaction you want to fake:") + fmt.Print("\nPlease enter the id of the transaction you want to fake:") var transID string _, err := fmt.Scanln(&transID) if err != nil { -- GitLab