Skip to content

Altair -- Fork Choice

Introduction

This is the modification of the fork choice according to the Altair upgrade.

Unless stated explicitly, all prior functionality from Phase0 is inherited.

New fork-choice helpers

New get_sync_message_due_ms

def get_sync_message_due_ms(epoch: Epoch) -> uint64:
    return get_slot_component_duration_ms(SYNC_MESSAGE_DUE_BPS)

New get_contribution_due_ms

def get_contribution_due_ms(epoch: Epoch) -> uint64:
    return get_slot_component_duration_ms(CONTRIBUTION_DUE_BPS)