File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
beacon_node/beacon_chain/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1128,10 +1128,14 @@ fn verify_head_block_is_known<T: BeaconChainTypes>(
1128
1128
}
1129
1129
}
1130
1130
1131
+ if !verify_attestation_is_finalized_checkpoint_or_descendant ( attestation. data ( ) , chain) {
1132
+ return Err ( Error :: HeadBlockFinalized {
1133
+ beacon_block_root : attestation. data ( ) . beacon_block_root ,
1134
+ } ) ;
1135
+ }
1136
+
1131
1137
Ok ( block)
1132
- } else if chain. is_pre_finalization_block ( attestation. data ( ) . beacon_block_root ) ?
1133
- || verify_attestation_is_finalized_checkpoint_or_descendant ( attestation. data ( ) , chain)
1134
- {
1138
+ } else if chain. is_pre_finalization_block ( attestation. data ( ) . beacon_block_root ) ? {
1135
1139
Err ( Error :: HeadBlockFinalized {
1136
1140
beacon_block_root : attestation. data ( ) . beacon_block_root ,
1137
1141
} )
You can’t perform that action at this time.
0 commit comments