mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
fix over/underflow in proposerslashing processing (#1325)
This commit is contained in:
parent
49cdd348d1
commit
4aefd8b021
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user