Commit Graph

824 Commits (594e660e02bbfb90d7cceb0ca6a28fa1f6e13682)

Author SHA1 Message Date
Rongjian Lan a354b93676
Optimize bls Mask infra to avoid loops (#3243) 4 years ago
Rongjian Lan f554fdb5a2
fix view change race issue (#3242) 4 years ago
Rongjian Lan 9c0554ddc9
Use finer grained RWMutex for consensus logic (#3239) 4 years ago
Leo Chen 45b7cf7d88 [consensus] check double sign after commit payload verification 4 years ago
Leo Chen b568d91e47 [consensus] remove duplicated signature verification 4 years ago
Rongjian Lan c3cad1be6b
Fix potential nil pointer (#3220) 4 years ago
Leo Chen 0435e2d203 [consensus] optimize onCommit 4 years ago
Leo Chen b560f88978 [libp2p/consensus] p2p spamming defense 4 years ago
Rongjian Lan bdd2a58e01
Remove expensive bls key serialization code (#3217) 4 years ago
Rongjian Lan 8a08da67ca
Remove unused code and add benchmark for consensus msg check (#3211) 4 years ago
Rongjian Lan a168517dfc
Move BLS related wrapper structure into a separate package (#3209) 4 years ago
Sebastian Johnsson 435a4f60cb Update consensus_test to account for bls key changes 4 years ago
Rongjian Lan dbb0ed2f53
Bind public keys into private key wrapper (#3208) 4 years ago
Sebastian Johnsson 79b6dc3d9b Add consensus message sender tests 4 years ago
Rongjian Lan 4dd9757f08 Add nil check on leader checks 4 years ago
Sebastian Johnsson 661b43f695 Rebase to main; use new shard.BLSPublicKeyWrapper wrapper 4 years ago
Sebastian Johnsson 6f891c9679 Explicitly set consensus.LeaderPubKey - tests are working locally but somehow fail while running on Travis CI 4 years ago
Sebastian Johnsson 8004330970 Update view change tests 4 years ago
Sebastian Johnsson 41c0b3d06b [coverage] [consensus] Improved coverage for the consensus package 4 years ago
Sebastian Johnsson 680d384eac Explicitly set consensus.LeaderPubKey - tests are working locally but somehow fail while running on Travis CI 4 years ago
Sebastian Johnsson 2658bfc4ea Update view change tests 4 years ago
Sebastian Johnsson 7e5b6fe5e9 [coverage] [consensus] Improved coverage for the consensus package 4 years ago
Rongjian Lan 67d77c3965
Refactor bls public key into a wrapper (#3203) 4 years ago
Leo Chen 7acb67f05e [log] remove cost log for each consensus message 4 years ago
Leo Chen 373bf7f97a [consensus] use a forked abool package with Toggle support 4 years ago
Leo Chen ff0ab475ea [consensus] export IgnoreViewIDCheck 4 years ago
Leo Chen 70884eb346 [consensus] replace infoMutex with atomic bool 4 years ago
Rongjian Lan 68ab784d63
Refactor quorum calculation and signature submission process (#3201) 4 years ago
Rongjian Lan 3c8cb849af use normal map for key index 4 years ago
Rongjian Lan b403baa35c Add cache to validator membership check 4 years ago
Rongjian Lan 71e9abdcbf Avoid validator sending msgs if the key is not in committee 4 years ago
Leo Chen 6b435a8dea [quorum] return earlier idx if found in IndexOf 5 years ago
Leo Chen 447e08a6a8 [log] add sample log of message handle time 5 years ago
Leo Chen fec81d1998 [consensus] use atomic operation when set blocknum 5 years ago
Leo Chen 6212813c75 [consensus] replace isActiveMutex with atomic.Value in messageSender 5 years ago
Leo Chen a11bcd9686 [consensus] replace blockNumMutex with atomic.Value in messageSender 5 years ago
Rongjian Lan 8057b05592 Fix multi-key related issues when keys are not in committee (#3132) 5 years ago
Leo Chen 836e1a5326 [consensus] clean up unused code 5 years ago
Rongjian Lan 2d003b4249
Remove unnecessary block verification (#3111) 5 years ago
Leo Chen 340f109525 [consensus] use size 1 chan for async goroutine comm 5 years ago
Leo Chen 5c1cc8232c
Merge master to t3 0523 (#3085) 5 years ago
Rongjian Lan 819500aa70 cherrypick log level change 5 years ago
Leo Chen 734d9c11d4 Revert "[multi-bls] validator sign and send message in parallel (#3054)" 5 years ago
Rongjian Lan e85c1f3064
Fix log levels (#3058) 5 years ago
Ganesha Upadhyaya 3c6b574b08
[multi-bls] validator sign and send message in parallel (#3054) 5 years ago
Rongjian Lan ea2347fa5e
Cherrypick crosslink related fixes from t3 to master. (#3045) 5 years ago
Rongjian Lan 2538a85f5c add nil check on getHeader 5 years ago
Rongjian Lan eb4fcc93ab
Optimize crosslink verification logic and add more cache (#3032) 5 years ago
Rongjian Lan b8ab786244
add nil check on getHeader (#3030) 5 years ago
Jacky Wang 9f6e09dce9
Code formatting fix based on `staticcheck` (#3023) 5 years ago