Skip to content

Gnosis Pectra hardfork minor issues #7379

Open
@dapplion

Description

@dapplion

Two minor issues found during Gnosis Pectra hardfork

Lightclient production error - To be fixed ⚠

For each block until we finalized the fork epoch we got lightclient production errors

Apr 30 14:03:51.375 ERRO error computing light_client updates LightClientUpdateError(BeaconStateError(IncorrectStateVariant)), service: lc_update, module: client::compute_light_client_updates:31
...
Apr 30 14:07:42.131 ERRO error computing light_client updates LightClientUpdateError(BeaconStateError(IncorrectStateVariant)), service: lc_update, module: client::compute_light_client_updates:31

Subscribe NotAllowed - NON-ISSUE ✅

Once, 2 slots before the fork slot we attempted to subscribe to some topics and got NotAllowed

Apr 30 14:03:30.001 WARN Failed to subscribe to topic, error: NotAllowed, topic: /eth2/7d5aab40/blob_sidecar_5/ssz_snappy, service: libp2p, module: lighthouse_network::service:797
Apr 30 14:03:30.001 WARN Failed to subscribe to topic, error: NotAllowed, topic: /eth2/7d5aab40/blob_sidecar_2/ssz_snappy, service: libp2p, module: lighthouse_network::service:797
Apr 30 14:03:30.002 WARN Failed to subscribe to topic, error: NotAllowed, topic: /eth2/7d5aab40/blob_sidecar_3/ssz_snappy, service: libp2p, module: lighthouse_network::service:797
Apr 30 14:03:30.002 WARN Failed to subscribe to topic, error: NotAllowed, topic: /eth2/7d5aab40/blob_sidecar_4/ssz_snappy, service: libp2p, module: lighthouse_network::service:797
Apr 30 14:03:40.001 INFO Transitioned to new fork, new_fork: Electra, old_fork: Deneb, service: network, module: network::service:88

It's this line from the gossipsub behaviour

        if !self.subscription_filter.can_subscribe(&topic_hash) {
            return Err(SubscriptionError::NotAllowed);
        }

https://github.com/libp2p/rust-libp2p/blob/2dc453bcc435d0d664f0b31c679ae1ebda4bf16a/protocols/gossipsub/src/behaviour.rs#L527C1-L529C10

Ah, it's probably because in Gnosis the subnet count reduced from 6 to 2, so we can't roll those topics over. It will be a non-issue for Mainnet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions