Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perso-distributed-systems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xavier.perret
perso-distributed-systems
Commits
05a2384a
Commit
05a2384a
authored
2 years ago
by
Xavier Perret
Browse files
Options
Downloads
Patches
Plain Diff
changed the print
parent
dbab0779
Branches
Branches containing commit
No related tags found
1 merge request
!2
added file to separate client function from the server
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/command-line/userinput.go
+4
-4
4 additions, 4 deletions
app/command-line/userinput.go
with
4 additions
and
4 deletions
app/command-line/userinput.go
+
4
−
4
View file @
05a2384a
...
...
@@ -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 i
ndex
of a transaction to rate"
)
fmt
.
Println
(
"We will ask you for an i
d
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
(
"
\n
Please enter the i
ndex
of the transaction you want to rate:"
)
fmt
.
Print
(
"
\n
Please enter the i
d
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
(
"
\n
Please enter the i
ndex
of the transaction you want to fake:"
)
fmt
.
Print
(
"
\n
Please enter the i
d
of the transaction you want to fake:"
)
var
transID
string
_
,
err
:=
fmt
.
Scanln
(
&
transID
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment