Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit a292ce2

Browse files
Apply suggestions from code review
Co-authored-by: Edmund Noble <[email protected]>
1 parent 946743c commit a292ce2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Chainweb/BlockHeader/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ newForkState as p targetFork
11561156
vote = curNumber < targetFork
11571157
cur = view (parentHeader . blockForkState) p
11581158
curNumber = view (parentHeader . blockForkNumber) p
1159-
curVotes = view (parentHeader . blockForkVotes ) p
1159+
curVotes = view (parentHeader . blockForkVotes) p
11601160
allParentVotes = view (parentHeader . blockForkVotes) <$> (p : HM.elems as)
11611161

11621162
genesisForkState :: ForkState

src/Chainweb/BlockHeader/Validation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ prop_block_adjacent_chainIds b
750750
prop_block_forkVotesReset :: BlockHeader -> Bool
751751
prop_block_forkVotesReset b
752752
| skipFeatureFlagValidationGuard v cid h = True
753-
| isForkEpochStart b = votes == resetVotes || votes == addVote resetVotes
753+
| isForkEpochStart b = votes == resetVotes || votes == addVote resetVotes
754754
| otherwise = True
755755
where
756756
votes = view blockForkVotes b

0 commit comments

Comments
 (0)