Commit Graph

270 Commits (01691fd3ea0840b25de58160cec1308829e2c209)

Author SHA1 Message Date
Minh Doan 373433531d add logic of attack determination for each node 6 years ago
Rongjian Lan da45cdeef5 Fix the broadcast bug introduced by for loop deferencing to the last element (for loop variable is just a temp pointer to the element) 6 years ago
Minh Doan 1b5f6d10f4 add timeout attack 6 years ago
Minh Doan bffd16571e fix kill_node.sh script and improve logic of peer.go 6 years ago
Minh Doan 39b9a36feb replace block hash by transaction hash 7 years ago
Minh Doan 31f111ed5d polish code 7 years ago
Rongjian Lan d771fe7df9 Format existing code according to gofmt 7 years ago
Rongjian Lan f2de27fa32 Add transaction generater program which sends transactions to leaders periodically 7 years ago
Rongjian Lan 0b4d06ce5e add message dir; add msgCategory, msgType in messaging protocol; add node struct as the entry point for messages 7 years ago
Rongjian Lan 9dc0f9c66d Fill in consensus message structure and send realistic consensus message instead of dummy string 7 years ago
Rongjian Lan 15f8bc607a Scaled consensus to 100 nodes。 7 years ago
Minh Doan 73b873b90b convert indentation and add vscode settings 7 years ago
Rongjian Lan 403508f2d1 Two-round consensus finished; change logging to use log package everywhere; limit the visibility of Consensus struct fields 7 years ago
Rongjian Lan 493423c2a7 Add more comments, fix type and styling 7 years ago
Rongjian Lan 2225441b17 Add p2p and consensus messaging protocol structure and utility; Add socket connection messaging reading utility; modify send_tnx to send message based on the new protocol 7 years ago
Rongjian Lan d08df51254 use readAll to read tcp message; add comments to note we are closing connection for each message 7 years ago
alok 8a2f82a540 Work In Progress 7 years ago
Rongjian Lan 3c946be803 Add more comments and clean up code layout 7 years ago
Rongjian Lan 6dba466a5f Add basic skeleton consensus and p2p lib; integrated with benchmark_node.go 7 years ago