Commit Graph

145 Commits

Author SHA1 Message Date
William Banfield
5b9efdde52 fix comment 2021-10-15 15:54:54 -04:00
William Banfield
8df0ab63f3 fix comment 2021-10-15 15:54:07 -04:00
William Banfield
da3b385cb6 Merge remote-tracking branch 'origin/wb/issue-6850' into wb/issue-6850 2021-10-15 14:34:38 -04:00
William Banfield
0db34a54e6 comment fixes from review 2021-10-15 14:34:13 -04:00
William Banfield
0f4844af2e Update internal/consensus/state.go
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
2021-10-14 12:10:47 -04:00
William Banfield
c8e6d61974 lint 2021-10-14 08:08:59 -04:00
William Banfield
ba0bb1a789 update enterPrevote comment 2021-10-14 08:06:16 -04:00
William Banfield
5935870fb7 update prevote nil debug line 2021-10-14 08:03:09 -04:00
William Banfield
bec293d48c add english description of alg rules 2021-10-14 07:59:13 -04:00
William Banfield
aec17c6945 Update internal/consensus/state.go
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
2021-10-14 11:49:18 -04:00
William Banfield
57e79ecb58 Update internal/consensus/state.go
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
2021-10-14 11:35:55 -04:00
William Banfield
cd395c74d3 change prevote log message 2021-09-29 11:01:31 -04:00
William Banfield
0ce7d23e1e make the linter happy 2021-09-24 12:45:18 -04:00
William Banfield
d16345471b fix spacing 2021-09-24 12:23:08 -04:00
William Banfield
87202a4fd3 fixes post merge 2021-09-24 12:19:47 -04:00
William Banfield
963cb89dbe Merge branch 'wb/proposer-based-timestamps' into wb/issue-6850 2021-09-24 12:15:30 -04:00
William Banfield
a3889ee2cb consensus: remove logic to unlock block on 2/3 prevote for nil (#6954) 2021-09-24 11:19:57 -04:00
William Banfield
718f43ced8 update POLFromPreviousRound test 2021-09-24 10:53:49 -04:00
William Banfield
9efe490ec3 update new test name and comment 2021-09-24 10:43:29 -04:00
William Banfield
f9941c4d09 update validatePrevotes to correctly look for nil 2021-09-24 10:40:55 -04:00
William Banfield
a0f7dce51c state.go comment fixes 2021-09-24 10:38:16 -04:00
William Banfield
7d8c047586 update prevote logic to prevote POL from previous round 2021-09-24 10:29:24 -04:00
William Banfield
7faa2e6537 add failing test for POL from previous round case 2021-09-24 10:28:22 -04:00
William Banfield
eec74413e7 state_test.go fixes to accomodate prevoting for nil 2021-09-23 19:07:48 -04:00
William Banfield
73bef72af3 fix defaultDoPrevote 2021-09-23 18:54:41 -04:00
William Banfield
c00c2b4738 fix prevote nil condition 2021-09-23 18:30:10 -04:00
William Banfield
a1ea25d005 add test for nil prevote on different proposal 2021-09-23 17:43:03 -04:00
William Banfield
c4628f6b36 lint ++ 2021-09-23 12:42:52 -04:00
William Banfield
81c5b43e3b no lint add space 2021-09-23 12:24:48 -04:00
William Banfield
db12fbc74e remove unlock checks 2021-09-23 12:22:35 -04:00
William Banfield
0f25a4f131 add ensureRelock to common_test 2021-09-23 12:06:10 -04:00
William Banfield
cb6c884ac4 add relock test 2021-09-23 12:01:29 -04:00
William Banfield
7f889fceba update test comments to include new 2021-09-23 12:00:16 -04:00
William Banfield
4a2cf84608 con state name update 2021-09-23 10:59:50 -04:00
William Banfield
962ceefa59 do not relock on old proposal test cleanup 2021-09-23 10:35:23 -04:00
William Banfield
f559eceaff udpate no relock function to be cleaner 2021-09-23 10:29:59 -04:00
William Banfield
00b758bf25 rename slashing 2021-09-23 10:23:48 -04:00
William Banfield
e47ef0ff47 add _ into test names 2021-09-23 10:21:40 -04:00
William Banfield
b7d4381fd8 update relock test to be more clear 2021-09-23 10:19:35 -04:00
William Banfield
2bb9ca26c4 update TestStatePOL comment 2021-09-22 13:47:43 -04:00
William Banfield
bf90e1c6e2 remove erroneous sleep 2021-09-22 13:35:30 -04:00
William Banfield
6bc596f5d0 fix TestStateProposerSelection2 to precommit for nil correctly 2021-09-22 12:12:39 -04:00
William Banfield
cffe1fe730 begin removing unlock condition 2021-09-22 10:31:31 -04:00
William Banfield
0a2098e44b add testing.T to new assertions 2021-09-22 10:20:58 -04:00
William Banfield
3f854d8b25 Merge branch 'wb/proposer-based-timestamps' into wb/issue-6849 2021-09-22 10:16:55 -04:00
William Banfield
dc12a19ba8 rename IsZero to IsNil and replace uses of block len check with helper 2021-09-22 09:52:59 -04:00
William Banfield
87f4beb374 consensus: remove panics from test helper functions (#6969) 2021-09-22 08:56:42 -04:00
William Banfield
51db3f86c5 add ensure new timeout back 2021-09-21 11:51:43 -04:00
William Banfield
c69f933d61 update precommit on relock comment 2021-09-21 11:43:33 -04:00
William Banfield
afff87f4ec update unlock description 2021-09-21 11:41:41 -04:00