Commit Graph

76 Commits (d3504c4d95cd3e861c55b66371e477dab5133071)

Author SHA1 Message Date
Minh Doan 7f3c717092 return consensus pointer instead a copy which contains mutex 6 years ago
Minh Doan 35dda18b4d add shard id in tps report 6 years ago
Richard Liu cbedf08a6c log mem usage. 6 years ago
Minh Doan 9266fdc264 make sure attack_enabled default to false so that tnx client wont get attacked. also add more attack in validator 6 years ago
Minh Doan e7e5792d41 add incorrect response attack 6 years ago
Minh Doan 283ef0b3da enable attack timeout and killing itself 6 years ago
Richard Liu 0a97d984be updated tps starttime location 6 years ago
Rongjian Lan 605b1730d8 Pull logging util func into utils/metrics.go; add more comments for consensus 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
Richard Liu 1bacb1a8db added mem report 6 years ago
Richard Liu 3266c20077 added tps 6 years ago
Rongjian Lan d9ff51d534 Remove some legacy lines and fix some comments for consensus and blocks 6 years ago
Minh Doan 91a4ef0dab add todo 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
Minh Doan 39b9a36feb replace block hash by transaction hash 6 years ago
Rongjian Lan 4efc1bfcfa Add client directory for client related codes; refactor message protocol files 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 60647c9833 clean up more logging and commented lines; make tx simulator wait more time for other nodes to be ready 6 years ago
Rongjian Lan 89f8f5bb38 Clean up the logs 6 years ago
Rongjian Lan 4a16c007e7 Fine tune consensus throughput locally: one shard / 300 nodes / 800 tps 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
Minh Doan 8e36f57fd5 fix typo 6 years ago
Rongjian Lan 1b3ceccf2d Synchronization bug fixes on consensus 6 years ago
Minh Doan 31f111ed5d polish code 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
Minh Doan ca404d2d71 fix comments and add TODO 6 years ago
Rongjian Lan cb549d9693 Add more comments to new code; make prevHash 32 byte array 6 years ago
Rongjian Lan d5214f3b3d Add logic to select transactions from pendingTxs using UTXO pool 6 years ago
Richard Liu 5096238128 update logs 6 years ago
Richard Liu 91ea18228f added log package 6 years ago
Richard Liu 105e393169 minor fix 6 years ago
Rongjian Lan 6adafcb8c9 Fill in multisig mocks 6 years ago
Rongjian Lan 461b3fa3d1 Refactor message/message.go to common/message.go 6 years ago
Rongjian Lan d771fe7df9 Format existing code according to gofmt 6 years ago
Rongjian Lan 6da4336614 Add sharding config with 2 shard; update tx generator accordingly 6 years ago
Rongjian Lan c7d9c6843a Add shardId into consensus and rename ipList file into config file 6 years ago
Rongjian Lan 4419aa15df Add test for consensus leader/validator 6 years ago
Rongjian Lan ae693698eb Add test for consensus.go 6 years ago
Rongjian Lan c66f7be673 Fix log formating 6 years ago
Rongjian Lan 0498d87059 Add consensus view Id and checks 6 years ago
Minh Doan 271106289e fix comments 6 years ago
Minh Doan 3a7f9eb46d add more generic utxo 6 years ago
Richard Liu a3663106d3 updated log functions 6 years ago
Richard Liu 7bd78e56a2 temp fix for enabling travis 6 years ago
Richard Liu 1e513669e3 temp fix for unblocking build 6 years ago