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

removed useless code

parent 241f2f8a
Branches
No related tags found
1 merge request!2added file to separate client function from the server
...@@ -136,11 +136,7 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) { ...@@ -136,11 +136,7 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) {
switch operation { switch operation {
case "1": case "1":
fmt.Println("You chose to create a transaction") fmt.Println("You chose to create a transaction")
if isAlsoServer { if !isAlsoServer {
fmt.Println("Not yet implemented!")
//newTrans := userCreatedTransaction(clientConfig)
//createTransaction(newTrans)
} else {
newTrans := userCreatedTransaction(clientConfig) newTrans := userCreatedTransaction(clientConfig)
utilities.PrintNeighbors(clientConfig.Neighbours) utilities.PrintNeighbors(clientConfig.Neighbours)
fmt.Println("TRANSACTION READY TO BE SENT") fmt.Println("TRANSACTION READY TO BE SENT")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment