Corrects justification comments

This commit is contained in:
Carl Beekhuizen 2019-06-29 13:10:09 +02:00
parent f9ca7c97c9
commit 2eca6ef09d
No known key found for this signature in database
GPG Key ID: D05CA176D0020646
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def finalize_on_234(spec, state, epoch, support):
state.previous_justified_checkpoint = c4 state.previous_justified_checkpoint = c4
state.current_justified_checkpoint = c3 state.current_justified_checkpoint = c3
state.justification_bits = spec.Bitvector[spec.JUSTIFICATION_BITS_LENGTH]() state.justification_bits = spec.Bitvector[spec.JUSTIFICATION_BITS_LENGTH]()
state.justification_bits[1:3] = [1, 1] # mock 3rd and 4th latest epochs as justified state.justification_bits[1:3] = [1, 1] # mock 2nd and 3rd latest epochs as justified
# mock the 2nd latest epoch as justifiable, with 4th as source # mock the 2nd latest epoch as justifiable, with 4th as source
add_mock_attestations(spec, state, add_mock_attestations(spec, state,
epoch=epoch - 2, epoch=epoch - 2,