Skip to content
Snippets Groups Projects
Commit 05a2384a authored by Xavier Perret's avatar Xavier Perret
Browse files

changed the print

parent dbab0779
Branches
No related tags found
1 merge request!2added file to separate client function from the server
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment