Rename to has_feature

This commit is contained in:
Mac L
2024-05-02 11:05:03 +10:00
parent b68d08c847
commit 689cdaef61
20 changed files with 39 additions and 40 deletions

View File

@@ -2046,7 +2046,7 @@ pub fn serve<T: BeaconChainTypes>(
.to_execution_address;
// New to P2P *and* op pool, gossip immediately if post-Capella.
let received_pre_capella = if chain.is_feature_enabled(FeatureName::Capella) {
let received_pre_capella = if chain.has_feature(FeatureName::Capella) {
ReceivedPreCapella::No
} else {
ReceivedPreCapella::Yes