Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
  • xavier.perret/perso-distributed-systems
1 result
Select Git revision
  • master
1 result
Show changes
Commits on Source (2)
...@@ -44,6 +44,5 @@ func main() { ...@@ -44,6 +44,5 @@ func main() {
utilities.PrintConfig(clientConfig) utilities.PrintConfig(clientConfig)
command_line.ClientUserInputLoop(clientConfig, true) command_line.ClientUserInputLoop(clientConfig, false)
} }
...@@ -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")
......