fix over/underflow in proposerslashing processing (#1325)

This commit is contained in:
tersec 2020-07-15 10:38:45 +00:00 committed by GitHub
parent 49cdd348d1
commit 4aefd8b021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ proc process_proposer_slashing*(
header_2 = proposer_slashing.signed_header_2.message
# Not from spec
if header_1.proposer_index.int >= state.validators.len:
if header_1.proposer_index >= state.validators.len.uint64:
return err("process_proposer_slashing: invalid proposer index")
# Verify header slots match