Commit Graph

353 Commits (5dedce7ca03f3f255a8050ae31ac617142963e78)

Author SHA1 Message Date
Rongjian Lan 651af74bf0 Fix bad code from last refactoring 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
Rongjian Lan 3d37dae7ca Refactor common folder into proto folder and rename common/message.go into proto/common.go 6 years ago
Rongjian Lan 6a408a2e97 Change COMMITTEE message category to CONSENSUS, which is more understandable 6 years ago
Minh Doan 5f3520ae32 fix minor by previous change of returning pointer 6 years ago
Minh Doan 7f3c717092 return consensus pointer instead a copy which contains mutex 6 years ago
Rongjian Lan 272a4e9067 Add report on avg tx size in bytes 6 years ago
Minh Doan 7ebcc89cdb refactor to avoid returning a copy of a struct containing lock 6 years ago
Minh Doan 665a0b9a38 remove snapshot and replace by GetSizeInByteOfUtxoMap 6 years ago
Minh Doan bf0e4fd1b3 remove NodeMessageType EXPERIMENT 6 years ago
Minh Doan f0fd5e6180 clean up work 6 years ago
Minh Doan 68f344ade5 refactor node module 6 years ago
Rongjian Lan d9ff51d534 Remove some legacy lines and fix some comments for consensus and blocks 6 years ago
Rongjian Lan c8627fa32a Refactor tx generator methods and add more comments 6 years ago
Rongjian Lan c3f65d4402 Fix utxopool udpate bug for invalid cross shard tx (finally the consensus is stable with 30% cross shard tx); reset consensus before retry 6 years ago
Rongjian Lan 0b4c365b2f Get snapshot of utxo when reporting to avoid concurrency issue; disable crossShard for now 6 years ago
Rongjian Lan 9dddde559b Add block sync function for leader to send new blocks to client 6 years ago
Rongjian Lan 745755699e Fix cross shard tx bug; add utxo pool sync for client to keep up with the leaders 6 years ago
Minh Doan 26f31e5fbe add todo and add golint script 6 years ago
Rongjian Lan 44518d8c35 Add unlock to commit for cross shard tx 6 years ago
Rongjian Lan ff3270d197 Put crossShard tx proofs directly inside Transaction object 6 years ago
Rongjian Lan f291f6a0bc Fix cross tx proof bugs; now the unlock-to-commit/abort message finally reaches leaders 6 years ago
Rongjian Lan 4fa3555ac9 Add unlock message and logic to send the message to leaders 6 years ago
Rongjian Lan ccff95bab3 Add serialization of proof list and let leader to send it to client 6 years ago
Rongjian Lan 4efc1bfcfa Add client directory for client related codes; refactor message protocol files 6 years ago
Rongjian Lan 061a5bbdc6 Add message protocol for proof-of-accept/reject 6 years ago
Rongjian Lan 84b829917e Add node server for tx generator client 6 years ago
Rongjian Lan b5dcd76831 Add cross shard TX proof and the logic to keep them for proof-of-accept or proof-of-reject 6 years ago
Rongjian Lan 9baa7c8503 Add lock on UTXO pool operations; fix validator catch up logic 6 years ago
Rongjian Lan 2ddd32882c Add ShardId into the revelant data structures: block, UTXO etc. 6 years ago
Rongjian Lan 4a16c007e7 Fine tune consensus throughput locally: one shard / 300 nodes / 800 tps 6 years ago
Rongjian Lan 600ad2b5e4 Add test for countNumTransactionsInBlockchain() 6 years ago
Rongjian Lan 71d1a819a4 Correct code format, add numTxProcessed stats reporting 6 years ago
Rongjian Lan b9cd467460 Add consensus retry so the consensus process won't get stuck forever 6 years ago
Minh Doan 2a05aedbf5 polish code by gofmt 6 years ago
Rongjian Lan 1b3ceccf2d Synchronization bug fixes on consensus 6 years ago
Minh Doan 31f111ed5d polish code 6 years ago
Minh Doan ceb19ed8ea fix comments and polish 6 years ago
Rongjian Lan 3b7edd4710 Add post-consensus processing of blockchain (add new block to blockchain) 6 years ago
Rongjian Lan 3f9bdde12e Implement block verifier for verifying new block 6 years ago
Rongjian Lan de988ef76a Add block verification in validator node; link verification function from Node obj to Consensus obj 6 years ago
Rongjian Lan cb983ce484 Add transactions num and Ids list to block 6 years ago
Rongjian Lan cb549d9693 Add more comments to new code; make prevHash 32 byte array 6 years ago
Rongjian Lan c57fff98b8 Link new block after consensus into blockchain 6 years ago
Rongjian Lan b1d2eaa52b Add valid transaction simulator based on current utxo pool 6 years ago
Rongjian Lan d5214f3b3d Add logic to select transactions from pendingTxs using UTXO pool 6 years ago
Rongjian Lan f09332d5b5 Synchronize the logic for pendingTransactions, and use utxoPool's tx selection logic 6 years ago
Rongjian Lan 91258d9b05 Separate node handler logic from node.go 6 years ago
Rongjian Lan 5769b1f52c Add test for node.go 6 years ago
Rongjian Lan 4c11a13d95 Add blockchain/utxopool to node struct 6 years ago