Commit Graph

156 Commits (fdc82bc49e5d8406bc29b7b94b07ed604a93fa3e)

Author SHA1 Message Date
Rongjian Lan 67b160901b Add more logs and avoid validator broadcast when not necessary 6 years ago
Eugene Kim b9930661b6 go fmt 6 years ago
Eugene Kim 3d46b3bb57 Use log15 (I stand corrected; we had it!) 6 years ago
Eugene Kim ea0b358870 Remove unused import 6 years ago
Eugene Kim bdf7e37ddc Make send() retry with exponential backoff 6 years ago
Eugene Kim 8d277fb796 Make sendWithSocketClient() log and return error 6 years ago
Eugene Kim 6a114e86c5 Fix logging net.Dial() errors 6 years ago
Eugene Kim dbc28e6fcf Use net.JoinHostPort() instead of hand-joining 6 years ago
Eugene Kim 0d95101f50 Add an exponential backoff helper 6 years ago
Rongjian Lan d997b4271f Lower the threshold from 1/1 to 2/3 6 years ago
Minh Doan 000afa179f add batch size 64k 6 years ago
Minh Doan 44c2c00378 fix the bugs in multicaset 6 years ago
Minh Doan 7c6aad17fa disable multicast 6 years ago
Minh Doan 9a2dc6ebd5 clean up 6 years ago
Minh Doan 0d1b847970 add multi boardcast improvement 6 years ago
Minh Doan 4328d72652 add self peer to node 6 years ago
Minh Doan 73996866dd set up validator id for peers 6 years ago
Rongjian Lan a7fa035555 Fix previous build error 6 years ago
Rongjian Lan 22ef82be6a Add timer log on p2p broadcast 6 years ago
Minh Doan e7cb022721 add logic for syncing 6 years ago
Minh Doan bf7b94e832 clean up 6 years ago
Minh Doan ef46b60e05 add test for gob encoding 6 years ago
Minh Doan b7f0d7765d add logic for waiting for syncing finish 6 years ago
Minh Doan fa869b6974 add good practice to save space of empty struct -> size of 0 6 years ago
Minh Doan 2de914a398 rename message_reader to helper and change the name of the test as well 6 years ago
Minh Doan f17ec205db add SendMeassage and Test 6 years ago
Richard Liu 7ad223816f update for github.com folder structure 6 years ago
Richard Liu 47501a2df2 vscode format 6 years ago
Rongjian Lan 86093d6ffc Add real public and private key into Peer object; initialize schnorr multi-signature bitmap in the consensus 6 years ago
Rongjian Lan 737732150f Refactor node/message.go to proto/node.go, p2p/message.go to p2p.message_reader.go 6 years ago
Minh Doan 283ef0b3da enable attack timeout and killing itself 6 years ago
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 6 years ago
Minh Doan 31f111ed5d polish code 6 years ago
Rongjian Lan d771fe7df9 Format existing code according to gofmt 6 years ago
Rongjian Lan f2de27fa32 Add transaction generater program which sends transactions to leaders periodically 6 years ago
Rongjian Lan 0b4d06ce5e add message dir; add msgCategory, msgType in messaging protocol; add node struct as the entry point for messages 6 years ago
Rongjian Lan 9dc0f9c66d Fill in consensus message structure and send realistic consensus message instead of dummy string 6 years ago
Rongjian Lan 15f8bc607a Scaled consensus to 100 nodes。 6 years ago
Minh Doan 73b873b90b convert indentation and add vscode settings 6 years ago
Rongjian Lan 403508f2d1 Two-round consensus finished; change logging to use log package everywhere; limit the visibility of Consensus struct fields 6 years ago
Rongjian Lan 493423c2a7 Add more comments, fix type and styling 6 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 6 years ago
Rongjian Lan d08df51254 use readAll to read tcp message; add comments to note we are closing connection for each message 6 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