Sat, Feb 28, 2026

Propagation anomalies - 2026-02-28

Detection of blocks that propagated slower than expected, attempting to find correlations with blob count.

Show code
display_sql("block_production_timeline", target_date)
View query
WITH
-- Base slots using proposer duty as the source of truth
slots AS (
    SELECT DISTINCT
        slot,
        slot_start_date_time,
        proposer_validator_index
    FROM canonical_beacon_proposer_duty
    WHERE meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
),

-- Proposer entity mapping
proposer_entity AS (
    SELECT
        index,
        entity
    FROM ethseer_validator_entity
    WHERE meta_network_name = 'mainnet'
),

-- Blob count per slot
blob_count AS (
    SELECT
        slot,
        uniq(blob_index) AS blob_count
    FROM canonical_beacon_blob_sidecar
    WHERE meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
    GROUP BY slot
),

-- Canonical block hash (to verify MEV payload was actually used)
canonical_block AS (
    SELECT DISTINCT
        slot,
        execution_payload_block_hash
    FROM canonical_beacon_block
    WHERE meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
),

-- MEV bid timing using timestamp_ms
mev_bids AS (
    SELECT
        slot,
        slot_start_date_time,
        min(timestamp_ms) AS first_bid_timestamp_ms,
        max(timestamp_ms) AS last_bid_timestamp_ms
    FROM mev_relay_bid_trace
    WHERE meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
    GROUP BY slot, slot_start_date_time
),

-- MEV payload delivery - join canonical block with delivered payloads
-- Note: Use is_mev flag because ClickHouse LEFT JOIN returns 0 (not NULL) for non-matching rows
-- Get value from proposer_payload_delivered (not bid_trace, which may not have the winning block)
mev_payload AS (
    SELECT
        cb.slot,
        cb.execution_payload_block_hash AS winning_block_hash,
        1 AS is_mev,
        max(pd.value) AS winning_bid_value,
        groupArray(DISTINCT pd.relay_name) AS relay_names,
        any(pd.builder_pubkey) AS winning_builder
    FROM canonical_block cb
    GLOBAL INNER JOIN mev_relay_proposer_payload_delivered pd
        ON cb.slot = pd.slot AND cb.execution_payload_block_hash = pd.block_hash
    WHERE pd.meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
    GROUP BY cb.slot, cb.execution_payload_block_hash
),

-- Winning bid timing from bid_trace (may not exist for all MEV blocks)
winning_bid AS (
    SELECT
        bt.slot,
        bt.slot_start_date_time,
        argMin(bt.timestamp_ms, bt.event_date_time) AS winning_bid_timestamp_ms
    FROM mev_relay_bid_trace bt
    GLOBAL INNER JOIN mev_payload mp ON bt.slot = mp.slot AND bt.block_hash = mp.winning_block_hash
    WHERE bt.meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
    GROUP BY bt.slot, bt.slot_start_date_time
),

-- Block gossip timing with spread
block_gossip AS (
    SELECT
        slot,
        min(event_date_time) AS block_first_seen,
        max(event_date_time) AS block_last_seen
    FROM libp2p_gossipsub_beacon_block
    WHERE meta_network_name = 'mainnet'
      AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
    GROUP BY slot
),

-- Column arrival timing: first arrival per column, then min/max of those
column_gossip AS (
    SELECT
        slot,
        min(first_seen) AS first_column_first_seen,
        max(first_seen) AS last_column_first_seen
    FROM (
        SELECT
            slot,
            column_index,
            min(event_date_time) AS first_seen
        FROM libp2p_gossipsub_data_column_sidecar
        WHERE meta_network_name = 'mainnet'
          AND slot_start_date_time >= '2026-02-28' AND slot_start_date_time < '2026-02-28'::date + INTERVAL 1 DAY
          AND event_date_time > '1970-01-01 00:00:01'
        GROUP BY slot, column_index
    )
    GROUP BY slot
)

SELECT
    s.slot AS slot,
    s.slot_start_date_time AS slot_start_date_time,
    pe.entity AS proposer_entity,

    -- Blob count
    coalesce(bc.blob_count, 0) AS blob_count,

    -- MEV bid timing (absolute and relative to slot start)
    fromUnixTimestamp64Milli(mb.first_bid_timestamp_ms) AS first_bid_at,
    mb.first_bid_timestamp_ms - toInt64(toUnixTimestamp(mb.slot_start_date_time)) * 1000 AS first_bid_ms,
    fromUnixTimestamp64Milli(mb.last_bid_timestamp_ms) AS last_bid_at,
    mb.last_bid_timestamp_ms - toInt64(toUnixTimestamp(mb.slot_start_date_time)) * 1000 AS last_bid_ms,

    -- Winning bid timing (from bid_trace, may be NULL if block hash not in bid_trace)
    if(wb.slot != 0, fromUnixTimestamp64Milli(wb.winning_bid_timestamp_ms), NULL) AS winning_bid_at,
    if(wb.slot != 0, wb.winning_bid_timestamp_ms - toInt64(toUnixTimestamp(s.slot_start_date_time)) * 1000, NULL) AS winning_bid_ms,

    -- MEV payload info (from proposer_payload_delivered, always present for MEV blocks)
    if(mp.is_mev = 1, mp.winning_bid_value, NULL) AS winning_bid_value,
    if(mp.is_mev = 1, mp.relay_names, []) AS winning_relays,
    if(mp.is_mev = 1, mp.winning_builder, NULL) AS winning_builder,

    -- Block gossip timing with spread
    bg.block_first_seen,
    dateDiff('millisecond', s.slot_start_date_time, bg.block_first_seen) AS block_first_seen_ms,
    bg.block_last_seen,
    dateDiff('millisecond', s.slot_start_date_time, bg.block_last_seen) AS block_last_seen_ms,
    dateDiff('millisecond', bg.block_first_seen, bg.block_last_seen) AS block_spread_ms,

    -- Column arrival timing (NULL when no blobs)
    if(coalesce(bc.blob_count, 0) = 0, NULL, cg.first_column_first_seen) AS first_column_first_seen,
    if(coalesce(bc.blob_count, 0) = 0, NULL, dateDiff('millisecond', s.slot_start_date_time, cg.first_column_first_seen)) AS first_column_first_seen_ms,
    if(coalesce(bc.blob_count, 0) = 0, NULL, cg.last_column_first_seen) AS last_column_first_seen,
    if(coalesce(bc.blob_count, 0) = 0, NULL, dateDiff('millisecond', s.slot_start_date_time, cg.last_column_first_seen)) AS last_column_first_seen_ms,
    if(coalesce(bc.blob_count, 0) = 0, NULL, dateDiff('millisecond', cg.first_column_first_seen, cg.last_column_first_seen)) AS column_spread_ms

FROM slots s
GLOBAL LEFT JOIN proposer_entity pe ON s.proposer_validator_index = pe.index
GLOBAL LEFT JOIN blob_count bc ON s.slot = bc.slot
GLOBAL LEFT JOIN mev_bids mb ON s.slot = mb.slot
GLOBAL LEFT JOIN mev_payload mp ON s.slot = mp.slot
GLOBAL LEFT JOIN winning_bid wb ON s.slot = wb.slot
GLOBAL LEFT JOIN block_gossip bg ON s.slot = bg.slot
GLOBAL LEFT JOIN column_gossip cg ON s.slot = cg.slot

ORDER BY s.slot DESC
Show code
df = load_parquet("block_production_timeline", target_date)

# Filter to valid blocks (exclude missed slots)
df = df[df["block_first_seen_ms"].notna()]
df = df[(df["block_first_seen_ms"] >= 0) & (df["block_first_seen_ms"] < 60000)]

# Flag MEV vs local blocks
df["has_mev"] = df["winning_bid_value"].notna()
df["block_type"] = df["has_mev"].map({True: "MEV", False: "Local"})

# Get max blob count for charts
max_blobs = df["blob_count"].max()

print(f"Total valid blocks: {len(df):,}")
print(f"MEV blocks: {df['has_mev'].sum():,} ({df['has_mev'].mean()*100:.1f}%)")
print(f"Local blocks: {(~df['has_mev']).sum():,} ({(~df['has_mev']).mean()*100:.1f}%)")
Total valid blocks: 7,198
MEV blocks: 6,631 (92.1%)
Local blocks: 567 (7.9%)

Anomaly detection method

The method:

  1. Fit linear regression: block_first_seen_ms ~ blob_count
  2. Calculate residuals (actual - expected)
  3. Flag blocks with residuals > 2σ as anomalies

Points above the ±2σ band propagated slower than expected given their blob count.

Show code
# Conditional outliers: blocks slow relative to their blob count
df_anomaly = df.copy()

# Fit regression: block_first_seen_ms ~ blob_count
slope, intercept, r_value, p_value, std_err = stats.linregress(
    df_anomaly["blob_count"].astype(float), df_anomaly["block_first_seen_ms"]
)

# Calculate expected value and residual
df_anomaly["expected_ms"] = intercept + slope * df_anomaly["blob_count"].astype(float)
df_anomaly["residual_ms"] = df_anomaly["block_first_seen_ms"] - df_anomaly["expected_ms"]

# Calculate residual standard deviation
residual_std = df_anomaly["residual_ms"].std()

# Flag anomalies: residual > 2σ (unexpectedly slow)
df_anomaly["is_anomaly"] = df_anomaly["residual_ms"] > 2 * residual_std

n_anomalies = df_anomaly["is_anomaly"].sum()
pct_anomalies = n_anomalies / len(df_anomaly) * 100

# Prepare outliers dataframe
df_outliers = df_anomaly[df_anomaly["is_anomaly"]].copy()
df_outliers["relay"] = df_outliers["winning_relays"].apply(lambda x: x[0] if len(x) > 0 else "Local")
df_outliers["proposer"] = df_outliers["proposer_entity"].fillna("Unknown")
df_outliers["builder"] = df_outliers["winning_builder"].apply(
    lambda x: f"{x[:10]}..." if pd.notna(x) and x else "Local"
)

print(f"Regression: block_ms = {intercept:.1f} + {slope:.2f} × blob_count (R² = {r_value**2:.3f})")
print(f"Residual σ = {residual_std:.1f}ms")
print(f"Anomalies (>2σ slow): {n_anomalies:,} ({pct_anomalies:.1f}%)")
Regression: block_ms = 1761.3 + 15.46 × blob_count (R² = 0.011)
Residual σ = 648.0ms
Anomalies (>2σ slow): 311 (4.3%)
Show code
# Create scatter plot with regression band
x_range = np.array([0, int(max_blobs)])
y_pred = intercept + slope * x_range
y_upper = y_pred + 2 * residual_std
y_lower = y_pred - 2 * residual_std

fig = go.Figure()

# Add ±2σ band
fig.add_trace(go.Scatter(
    x=np.concatenate([x_range, x_range[::-1]]),
    y=np.concatenate([y_upper, y_lower[::-1]]),
    fill="toself",
    fillcolor="rgba(100,100,100,0.2)",
    line=dict(width=0),
    name="±2σ band",
    hoverinfo="skip",
))

# Add regression line
fig.add_trace(go.Scatter(
    x=x_range,
    y=y_pred,
    mode="lines",
    line=dict(color="white", width=2, dash="dash"),
    name="Expected",
))

# Normal points (sample to avoid overplotting)
df_normal = df_anomaly[~df_anomaly["is_anomaly"]]
if len(df_normal) > 2000:
    df_normal = df_normal.sample(2000, random_state=42)

fig.add_trace(go.Scatter(
    x=df_normal["blob_count"],
    y=df_normal["block_first_seen_ms"],
    mode="markers",
    marker=dict(size=4, color="rgba(100,150,200,0.4)"),
    name=f"Normal ({len(df_anomaly) - n_anomalies:,})",
    hoverinfo="skip",
))

# Anomaly points
fig.add_trace(go.Scatter(
    x=df_outliers["blob_count"],
    y=df_outliers["block_first_seen_ms"],
    mode="markers",
    marker=dict(
        size=7,
        color="#e74c3c",
        line=dict(width=1, color="white"),
    ),
    name=f"Anomalies ({n_anomalies:,})",
    customdata=np.column_stack([
        df_outliers["slot"],
        df_outliers["residual_ms"].round(0),
        df_outliers["relay"],
    ]),
    hovertemplate="<b>Slot %{customdata[0]}</b><br>Blobs: %{x}<br>Actual: %{y:.0f}ms<br>+%{customdata[1]}ms vs expected<br>Relay: %{customdata[2]}<extra></extra>",
))

fig.update_layout(
    margin=dict(l=60, r=30, t=30, b=60),
    xaxis=dict(title="Blob count", range=[-0.5, int(max_blobs) + 0.5]),
    yaxis=dict(title="Block first seen (ms from slot start)"),
    legend=dict(orientation="h", yanchor="bottom", y=1.02, xanchor="right", x=1),
    height=500,
)
fig.show(config={"responsive": True})

All propagation anomalies

Blocks that propagated much slower than expected given their blob count, sorted by residual (worst first).

Show code
# All anomalies table with selectable text and Lab links
if n_anomalies > 0:
    df_table = df_outliers.sort_values("residual_ms", ascending=False)[
        ["slot", "blob_count", "block_first_seen_ms", "expected_ms", "residual_ms", "proposer", "builder", "relay"]
    ].copy()
    df_table["block_first_seen_ms"] = df_table["block_first_seen_ms"].round(0).astype(int)
    df_table["expected_ms"] = df_table["expected_ms"].round(0).astype(int)
    df_table["residual_ms"] = df_table["residual_ms"].round(0).astype(int)
    
    # Build HTML table
    html = '''
    <style>
    .anomaly-table { border-collapse: collapse; width: 100%; font-family: monospace; font-size: 13px; }
    .anomaly-table th { background: #2c3e50; color: white; padding: 8px 12px; text-align: left; position: sticky; top: 0; }
    .anomaly-table td { padding: 6px 12px; border-bottom: 1px solid #eee; }
    .anomaly-table tr:hover { background: #f5f5f5; }
    .anomaly-table .num { text-align: right; }
    .anomaly-table .delta { background: #ffebee; color: #c62828; font-weight: bold; }
    .anomaly-table a { color: #1976d2; text-decoration: none; }
    .anomaly-table a:hover { text-decoration: underline; }
    .table-container { max-height: 600px; overflow-y: auto; }
    </style>
    <div class="table-container">
    <table class="anomaly-table">
    <thead>
    <tr><th>Slot</th><th class="num">Blobs</th><th class="num">Actual (ms)</th><th class="num">Expected (ms)</th><th class="num">Δ (ms)</th><th>Proposer</th><th>Builder</th><th>Relay</th></tr>
    </thead>
    <tbody>
    '''
    
    for _, row in df_table.iterrows():
        slot_link = f'<a href="https://lab.ethpandaops.io/ethereum/slots/{row["slot"]}" target="_blank">{row["slot"]}</a>'
        html += f'''<tr>
            <td>{slot_link}</td>
            <td class="num">{row["blob_count"]}</td>
            <td class="num">{row["block_first_seen_ms"]}</td>
            <td class="num">{row["expected_ms"]}</td>
            <td class="num delta">+{row["residual_ms"]}</td>
            <td>{row["proposer"]}</td>
            <td>{row["builder"]}</td>
            <td>{row["relay"]}</td>
        </tr>'''
    
    html += '</tbody></table></div>'
    display(HTML(html))
    print(f"\nTotal anomalies: {len(df_table):,}")
else:
    print("No anomalies detected.")
SlotBlobsActual (ms)Expected (ms)Δ (ms)ProposerBuilderRelay
13786796 0 7872 1761 +6111 whale_0x3212 Local Local
13788674 0 7406 1761 +5645 everstake Local Local
13789632 0 7103 1761 +5342 launchnodes_lido Local Local
13791072 0 5938 1761 +4177 upbit Local Local
13788579 0 5865 1761 +4104 rocketpool Local Local
13791488 3 5615 1808 +3807 rocketpool Local Local
13787936 8 5443 1885 +3558 upbit Local Local
13785376 0 5194 1761 +3433 upbit Local Local
13784928 0 5133 1761 +3372 upbit Local Local
13785171 0 4989 1761 +3228 ether.fi Local Local
13790307 0 4514 1761 +2753 stakefish Local Local
13786702 0 4339 1761 +2578 stakefish Local Local
13786362 20 4560 2071 +2489 whale_0x1980 Local Local
13790031 0 4214 1761 +2453 everstake Local Local
13790800 0 4175 1761 +2414 stakefish Local Local
13784405 7 4214 1870 +2344 stakefish Local Local
13786341 19 4390 2055 +2335 stakefish Local Local
13787937 0 4060 1761 +2299 staked.us Local Local
13787456 6 4147 1854 +2293 blockdaemon_lido Local Local
13786165 0 4053 1761 +2292 blockdaemon Local Local
13790957 0 4053 1761 +2292 ether.fi Local Local
13791489 0 4005 1761 +2244 ether.fi Local Local
13787330 0 3984 1761 +2223 whale_0xad1d Local Local
13788520 0 3952 1761 +2191 whale_0xad1d Local Local
13784781 0 3936 1761 +2175 blockdaemon Local Local
13791263 0 3886 1761 +2125 blockdaemon 0x8527d16c... Ultra Sound
13786368 21 4194 2086 +2108 upbit Local Local
13785118 0 3867 1761 +2106 stakefish Local Local
13786745 0 3802 1761 +2041 everstake Local Local
13787618 0 3781 1761 +2020 whale_0xad1d Local Local
13786504 21 4102 2086 +2016 stakefish Local Local
13789148 1 3732 1777 +1955 stakefish Local Local
13790205 4 3777 1823 +1954 stader 0x8527d16c... Ultra Sound
13789257 1 3714 1777 +1937 blockdaemon_lido 0x855b00e6... Ultra Sound
13788431 12 3877 1947 +1930 whale_0xdc8d 0x850b00e0... Ultra Sound
13787579 8 3806 1885 +1921 stakefish Local Local
13786800 8 3785 1885 +1900 ether.fi Local Local
13785325 5 3733 1839 +1894 whale_0xd84f 0x8a850621... Titan Relay
13788672 0 3643 1761 +1882 whale_0xdc8d 0xb26f9666... Ultra Sound
13790336 5 3685 1839 +1846 whale_0xdc8d 0xb67eaa5e... BloXroute Regulated
13785535 1 3623 1777 +1846 ether.fi 0xb26f9666... Titan Relay
13785960 0 3603 1761 +1842 ether.fi 0x852b0070... Agnostic Gnosis
13784944 3 3647 1808 +1839 everstake 0x857b0038... Ultra Sound
13789786 6 3685 1854 +1831 stakefish Local Local
13786738 0 3592 1761 +1831 everstake 0x87cc2536... Aestus
13787022 5 3636 1839 +1797 whale_0xdc8d 0x850b00e0... BloXroute Regulated
13789944 9 3689 1900 +1789 stakefish Local Local
13786947 12 3727 1947 +1780 whale_0xdc8d 0x850b00e0... Ultra Sound
13784429 0 3540 1761 +1779 whale_0xad1d Local Local
13789160 1 3554 1777 +1777 whale_0x8f33 Local Local
13785378 3 3582 1808 +1774 everstake 0x857b0038... Ultra Sound
13787573 2 3559 1792 +1767 blockdaemon 0x88857150... Ultra Sound
13788204 1 3523 1777 +1746 stakefish Local Local
13789874 10 3658 1916 +1742 stakefish Local Local
13785356 5 3576 1839 +1737 blockdaemon 0x88857150... Ultra Sound
13788823 5 3568 1839 +1729 stakefish Local Local
13788855 2 3519 1792 +1727 stakefish Local Local
13786773 6 3579 1854 +1725 whale_0x8ebd 0x8527d16c... Ultra Sound
13788521 0 3482 1761 +1721 everstake 0xb3a6dc1f... Agnostic Gnosis
13785568 8 3587 1885 +1702 blockdaemon 0x853b0078... Ultra Sound
13787878 1 3477 1777 +1700 whale_0xad1d Local Local
13785991 6 3550 1854 +1696 figment 0x88857150... Ultra Sound
13786744 0 3449 1761 +1688 everstake 0xb26f9666... Titan Relay
13791008 0 3445 1761 +1684 everstake 0xa412c4b8... Ultra Sound
13786692 0 3440 1761 +1679 whale_0x8ebd 0x8a850621... Ultra Sound
13791054 5 3513 1839 +1674 stakefish Local Local
13789666 0 3428 1761 +1667 everstake 0x8527d16c... Ultra Sound
13786834 7 3532 1870 +1662 everstake 0x853b0078... BloXroute Max Profit
13789766 6 3504 1854 +1650 whale_0x8ebd 0xa230e2cf... Flashbots
13788111 1 3424 1777 +1647 everstake 0x850b00e0... BloXroute Max Profit
13784907 5 3481 1839 +1642 everstake 0x8527d16c... Ultra Sound
13789286 6 3495 1854 +1641 everstake 0x853b0078... Aestus
13789277 5 3464 1839 +1625 whale_0x4685 0xb26f9666... Titan Relay
13785337 6 3478 1854 +1624 ether.fi 0xb7c5beef... EthGas
13791200 0 3382 1761 +1621 bitstamp 0xb26f9666... Aestus
13787807 3 3424 1808 +1616 blockdaemon 0x8a850621... Titan Relay
13789565 5 3454 1839 +1615 whale_0x8ebd Local Local
13787562 5 3453 1839 +1614 everstake 0x8527d16c... Ultra Sound
13789622 10 3530 1916 +1614 blockdaemon 0xac23f8cc... Ultra Sound
13786607 1 3385 1777 +1608 blockdaemon 0x88a53ec4... BloXroute Regulated
13786888 18 3639 2040 +1599 everstake 0x8a850621... Titan Relay
13790246 4 3418 1823 +1595 p2porg 0x91b123d8... BloXroute Regulated
13785712 0 3354 1761 +1593 blockdaemon_lido 0x851b00b1... Ultra Sound
13791371 0 3351 1761 +1590 blockdaemon 0x8a850621... Titan Relay
13790381 5 3418 1839 +1579 blockdaemon 0x853b0078... BloXroute Regulated
13788200 1 3356 1777 +1579 whale_0x8ebd 0x856b0004... Ultra Sound
13787968 10 3489 1916 +1573 gateway.fmas_lido 0x850b00e0... BloXroute Max Profit
13787170 11 3494 1931 +1563 whale_0x8ebd Local Local
13790601 8 3444 1885 +1559 blockdaemon_lido 0x82c466b9... BloXroute Regulated
13788960 0 3317 1761 +1556 p2porg 0x8a850621... Ultra Sound
13786912 0 3315 1761 +1554 0x88a53ec4... BloXroute Max Profit
13785955 5 3390 1839 +1551 whale_0x8ebd Local Local
13789771 1 3326 1777 +1549 whale_0x8ebd 0x8527d16c... Ultra Sound
13789218 6 3403 1854 +1549 luno 0x853b0078... Ultra Sound
13788944 0 3308 1761 +1547 coinbase 0xb67eaa5e... Aestus
13785463 3 3353 1808 +1545 whale_0xa7d9 0x853b0078... BloXroute Max Profit
13787895 4 3367 1823 +1544 blockdaemon_lido 0x856b0004... Ultra Sound
13788613 1 3317 1777 +1540 blockdaemon 0xb67eaa5e... BloXroute Regulated
13786407 0 3300 1761 +1539 blockdaemon_lido 0x88857150... Ultra Sound
13787597 8 3422 1885 +1537 everstake 0xac23f8cc... BloXroute Max Profit
13789984 10 3452 1916 +1536 whale_0x1eb0 Local Local
13791089 9 3434 1900 +1534 everstake 0xb7c5e609... BloXroute Max Profit
13789746 5 3371 1839 +1532 everstake 0x8527d16c... Ultra Sound
13791359 4 3350 1823 +1527 everstake 0x8527d16c... Ultra Sound
13790408 0 3283 1761 +1522 0x88a53ec4... BloXroute Regulated
13787555 6 3374 1854 +1520 whale_0x8ebd Local Local
13786679 7 3389 1870 +1519 everstake 0x850b00e0... BloXroute Max Profit
13791466 0 3280 1761 +1519 everstake 0xb26f9666... Titan Relay
13789830 2 3310 1792 +1518 blockdaemon_lido 0x850b00e0... BloXroute Regulated
13787795 5 3353 1839 +1514 everstake 0xb26f9666... Aestus
13785296 5 3352 1839 +1513 blockdaemon_lido 0x8527d16c... Ultra Sound
13788734 4 3335 1823 +1512 blockdaemon 0x853b0078... BloXroute Regulated
13787863 5 3347 1839 +1508 blockdaemon 0xb67eaa5e... BloXroute Regulated
13784693 1 3284 1777 +1507 everstake 0x8527d16c... Ultra Sound
13786102 0 3267 1761 +1506 whale_0xdc8d 0x856b0004... Ultra Sound
13791439 2 3297 1792 +1505 everstake 0x853b0078... Flashbots
13785028 1 3278 1777 +1501 revolut 0x856b0004... Ultra Sound
13788281 4 3323 1823 +1500 everstake 0x8527d16c... Ultra Sound
13787832 2 3289 1792 +1497 everstake 0xb26f9666... Titan Relay
13786637 5 3334 1839 +1495 binance 0x857b0038... Ultra Sound
13785346 12 3440 1947 +1493 blockdaemon 0x88857150... Ultra Sound
13786653 20 3563 2071 +1492 blockdaemon 0x853b0078... Ultra Sound
13785585 5 3331 1839 +1492 blockdaemon 0xb67eaa5e... BloXroute Regulated
13786655 5 3327 1839 +1488 ether.fi 0x82c466b9... EthGas
13784930 18 3527 2040 +1487 whale_0x8ebd 0x8527d16c... Ultra Sound
13788479 10 3401 1916 +1485 blockdaemon_lido 0x8527d16c... Ultra Sound
13786078 5 3323 1839 +1484 everstake 0xb26f9666... Titan Relay
13786391 21 3568 2086 +1482 whale_0xdc8d 0x850b00e0... BloXroute Regulated
13788931 5 3319 1839 +1480 luno 0x853b0078... Ultra Sound
13785116 3 3288 1808 +1480 everstake 0x8db2a99d... Ultra Sound
13785936 0 3241 1761 +1480 blockdaemon_lido 0x850b00e0... BloXroute Regulated
13787608 6 3333 1854 +1479 blockdaemon_lido 0x88857150... Ultra Sound
13789295 5 3317 1839 +1478 everstake 0xb26f9666... Titan Relay
13784861 7 3347 1870 +1477 whale_0x8ebd 0x8527d16c... Ultra Sound
13788473 4 3299 1823 +1476 luno 0xb26f9666... Titan Relay
13789406 0 3237 1761 +1476 0x8527d16c... Ultra Sound
13789888 7 3345 1870 +1475 whale_0x8ebd 0x850b00e0... BloXroute Max Profit
13791011 0 3235 1761 +1474 everstake 0xb26f9666... Titan Relay
13788816 0 3235 1761 +1474 blockdaemon 0x851b00b1... BloXroute Max Profit
13785221 3 3281 1808 +1473 whale_0xedc6 0xb7c5e609... BloXroute Max Profit
13791258 0 3234 1761 +1473 blockdaemon 0x88a53ec4... BloXroute Regulated
13788923 11 3404 1931 +1473 everstake 0x88a53ec4... BloXroute Max Profit
13784447 6 3326 1854 +1472 solo_stakers 0x853b0078... Aestus
13785044 9 3372 1900 +1472 blockdaemon_lido 0x8db2a99d... Ultra Sound
13784612 0 3230 1761 +1469 blockdaemon_lido 0x853b0078... BloXroute Regulated
13788833 5 3307 1839 +1468 blockdaemon 0x853b0078... BloXroute Regulated
13788407 7 3335 1870 +1465 blockdaemon_lido 0x850b00e0... BloXroute Regulated
13786851 5 3304 1839 +1465 revolut 0x8527d16c... Ultra Sound
13789998 1 3242 1777 +1465 everstake 0xb26f9666... Titan Relay
13791023 10 3381 1916 +1465 everstake 0xb26f9666... Aestus
13790706 1 3240 1777 +1463 figment 0xb26f9666... BloXroute Regulated
13790429 11 3394 1931 +1463 blockdaemon 0x850b00e0... BloXroute Regulated
13788803 1 3238 1777 +1461 blockdaemon_lido 0xb26f9666... Titan Relay
13787565 6 3314 1854 +1460 everstake 0x8db2a99d... BloXroute Max Profit
13788684 0 3221 1761 +1460 revolut 0x88857150... Ultra Sound
13784616 0 3220 1761 +1459 whale_0xdc8d 0x805e28e6... BloXroute Regulated
13790798 1 3235 1777 +1458 luno 0x850b00e0... BloXroute Regulated
13787610 12 3405 1947 +1458 everstake 0x8527d16c... Ultra Sound
13786710 8 3342 1885 +1457 kelp 0xb26f9666... Titan Relay
13791022 0 3217 1761 +1456 whale_0x8ebd 0x8a850621... BloXroute Max Profit
13785079 0 3217 1761 +1456 gateway.fmas_lido 0x851b00b1... BloXroute Max Profit
13784776 6 3309 1854 +1455 everstake 0xb26f9666... Aestus
13788805 15 3448 1993 +1455 blockdaemon_lido 0xac23f8cc... Ultra Sound
13784985 9 3355 1900 +1455 gateway.fmas_lido 0x850b00e0... BloXroute Max Profit
13784522 6 3308 1854 +1454 blockdaemon_lido 0x82c466b9... BloXroute Regulated
13789708 0 3215 1761 +1454 everstake 0x852b0070... BloXroute Max Profit
13785173 2 3244 1792 +1452 p2porg 0x850b00e0... BloXroute Regulated
13790334 1 3228 1777 +1451 blockdaemon 0x853b0078... Ultra Sound
13785093 5 3289 1839 +1450 luno 0x88857150... Ultra Sound
13788867 7 3317 1870 +1447 everstake 0x88a53ec4... BloXroute Max Profit
13790763 6 3301 1854 +1447 whale_0xdc8d 0xb26f9666... Titan Relay
13786304 20 3516 2071 +1445 stakingfacilities_lido 0xb67eaa5e... BloXroute Regulated
13790806 5 3284 1839 +1445 whale_0xdc8d 0xb67eaa5e... BloXroute Regulated
13789841 1 3221 1777 +1444 whale_0x8ebd 0x8527d16c... Ultra Sound
13789676 0 3204 1761 +1443 revolut 0x82c466b9... BloXroute Regulated
13784480 6 3296 1854 +1442 0xb67eaa5e... BloXroute Max Profit
13791260 0 3202 1761 +1441 revolut 0xb26f9666... Titan Relay
13789225 0 3201 1761 +1440 blockdaemon_lido 0xb26f9666... Titan Relay
13791302 5 3278 1839 +1439 whale_0xdc8d 0x853b0078... Ultra Sound
13791481 6 3293 1854 +1439 whale_0xdc8d 0xb26f9666... Titan Relay
13786119 2 3228 1792 +1436 solo_stakers 0x8527d16c... Ultra Sound
13788557 21 3521 2086 +1435 blockdaemon_lido 0x850b00e0... Ultra Sound
13789883 5 3273 1839 +1434 everstake 0x856b0004... BloXroute Max Profit
13784746 9 3332 1900 +1432 p2porg 0x856b0004... Agnostic Gnosis
13785075 3 3239 1808 +1431 blockdaemon_lido 0xb67eaa5e... BloXroute Regulated
13784878 7 3300 1870 +1430 stakingfacilities_lido 0x855b00e6... BloXroute Max Profit
13791125 5 3266 1839 +1427 gateway.fmas_lido 0xb67eaa5e... BloXroute Max Profit
13787601 4 3250 1823 +1427 gateway.fmas_lido 0x855b00e6... BloXroute Max Profit
13790346 11 3355 1931 +1424 everstake 0xb67eaa5e... BloXroute Max Profit
13787809 1 3200 1777 +1423 gateway.fmas_lido 0x855b00e6... BloXroute Max Profit
13789909 8 3308 1885 +1423 solo_stakers 0x8db2a99d... Aestus
13790748 6 3277 1854 +1423 blockdaemon_lido 0x8527d16c... Ultra Sound
13785031 1 3199 1777 +1422 gateway.fmas_lido 0x853b0078... BloXroute Regulated
13788562 21 3508 2086 +1422 blockdaemon_lido 0xb67eaa5e... BloXroute Regulated
13786853 1 3198 1777 +1421 stakingfacilities_lido 0x853b0078... Agnostic Gnosis
13787061 11 3349 1931 +1418 luno 0x8527d16c... Ultra Sound
13785675 5 3256 1839 +1417 everstake 0x88857150... Ultra Sound
13784887 1 3194 1777 +1417 bitstamp 0xb67eaa5e... BloXroute Max Profit
13788295 10 3329 1916 +1413 everstake 0xb26f9666... Titan Relay
13790844 8 3297 1885 +1412 whale_0xedc6 0x8db2a99d... BloXroute Max Profit
13787857 5 3250 1839 +1411 whale_0x8ebd 0xb67eaa5e... BloXroute Regulated
13784667 12 3358 1947 +1411 gateway.fmas_lido 0x855b00e6... BloXroute Max Profit
13786636 0 3172 1761 +1411 whale_0x8ebd 0xb26f9666... Titan Relay
13787186 5 3249 1839 +1410 gateway.fmas_lido 0x853b0078... Agnostic Gnosis
13786907 18 3450 2040 +1410 everstake 0x850b00e0... BloXroute Max Profit
13789934 1 3187 1777 +1410 everstake 0xb26f9666... Aestus
13791075 2 3201 1792 +1409 whale_0x8ebd 0x856b0004... Ultra Sound
13785039 0 3169 1761 +1408 everstake 0x852b0070... Ultra Sound
13784792 0 3168 1761 +1407 bitstamp 0xb67eaa5e... BloXroute Max Profit
13788958 5 3245 1839 +1406 everstake 0xb26f9666... Titan Relay
13787152 4 3229 1823 +1406 gateway.fmas_lido 0xb7c5beef... BloXroute Max Profit
13790975 5 3244 1839 +1405 whale_0x8ebd 0x853b0078... BloXroute Regulated
13786675 0 3166 1761 +1405 whale_0x4685 0xb26f9666... Aestus
13785418 0 3161 1761 +1400 stakingfacilities_lido 0xb67eaa5e... BloXroute Max Profit
13788578 5 3238 1839 +1399 everstake 0xb26f9666... Titan Relay
13789975 8 3284 1885 +1399 revolut 0x8527d16c... Ultra Sound
13785377 6 3253 1854 +1399 chainlayer_lido Local Local
13786717 7 3268 1870 +1398 0x856b0004... Ultra Sound
13784788 0 3159 1761 +1398 coinbase 0x8527d16c... Ultra Sound
13784817 6 3251 1854 +1397 everstake 0xb26f9666... Titan Relay
13788744 1 3173 1777 +1396 everstake 0x856b0004... BloXroute Max Profit
13789691 4 3217 1823 +1394 p2porg 0x93b11bec... Flashbots
13789283 0 3154 1761 +1393 stakingfacilities_lido 0xb67eaa5e... BloXroute Max Profit
13786713 1 3167 1777 +1390 bitstamp 0x88a53ec4... BloXroute Max Profit
13786283 0 3151 1761 +1390 p2porg 0xb211df49... Ultra Sound
13787502 11 3319 1931 +1388 mantle 0x856b0004... BloXroute Max Profit
13790167 5 3226 1839 +1387 blockdaemon 0xb67eaa5e... BloXroute Regulated
13784736 10 3302 1916 +1386 ether.fi 0xb26f9666... Titan Relay
13786652 0 3146 1761 +1385 mantle 0x99dbe3e8... Aestus
13788116 10 3299 1916 +1383 blockdaemon_lido 0x856b0004... Ultra Sound
13785199 11 3312 1931 +1381 blockdaemon 0xb26f9666... Titan Relay
13787314 12 3326 1947 +1379 gateway.fmas_lido 0xb67eaa5e... BloXroute Regulated
13788900 11 3308 1931 +1377 p2porg 0x850b00e0... BloXroute Regulated
13791189 5 3214 1839 +1375 blockdaemon_lido 0xb26f9666... Titan Relay
13786809 2 3167 1792 +1375 binance 0x8db2a99d... Ultra Sound
13786729 0 3136 1761 +1375 0x852b0070... Agnostic Gnosis
13788502 2 3164 1792 +1372 ether.fi 0x850b00e0... Flashbots
13784520 2 3163 1792 +1371 everstake 0x823e0146... Flashbots
13786772 1 3146 1777 +1369 mantle 0xb26f9666... Titan Relay
13790500 10 3285 1916 +1369 everstake 0x853b0078... Ultra Sound
13788940 8 3253 1885 +1368 blockdaemon 0x850b00e0... BloXroute Regulated
13791315 2 3159 1792 +1367 everstake 0x8527d16c... Ultra Sound
13787492 8 3250 1885 +1365 whale_0x8ebd 0x88a53ec4... BloXroute Max Profit
13789978 5 3203 1839 +1364 everstake 0xb26f9666... Titan Relay
13790508 0 3125 1761 +1364 everstake 0x852b0070... BloXroute Max Profit
13786693 0 3124 1761 +1363 gateway.fmas_lido 0xb67eaa5e... BloXroute Max Profit
13787574 0 3123 1761 +1362 rocketpool Local Local
13790697 4 3184 1823 +1361 everstake 0x853b0078... BloXroute Max Profit
13787806 0 3122 1761 +1361 piertwo 0xa0366397... Flashbots
13787520 5 3199 1839 +1360 nethermind_lido 0xb26f9666... Aestus
13788444 6 3214 1854 +1360 blockdaemon 0x8527d16c... Ultra Sound
13789588 6 3214 1854 +1360 whale_0x8ebd 0x88a53ec4... BloXroute Regulated
13784566 7 3229 1870 +1359 kiln 0x850b00e0... BloXroute Max Profit
13789007 1 3136 1777 +1359 everstake 0xb26f9666... Titan Relay
13788046 0 3117 1761 +1356 everstake 0xb26f9666... BloXroute Regulated
13788394 2 3145 1792 +1353 everstake 0x853b0078... Agnostic Gnosis
13786756 4 3175 1823 +1352 stakingfacilities_lido 0x8db2a99d... Agnostic Gnosis
13791138 1 3127 1777 +1350 p2porg 0x855b00e6... BloXroute Max Profit
13784722 10 3266 1916 +1350 gateway.fmas_lido 0x88a53ec4... BloXroute Max Profit
13787939 9 3250 1900 +1350 everstake 0xb26f9666... Titan Relay
13790286 13 3307 1962 +1345 kiln 0x850b00e0... BloXroute Max Profit
13786861 3 3152 1808 +1344 mantle 0x853b0078... BloXroute Max Profit
13789561 2 3135 1792 +1343 kiln 0x88a53ec4... BloXroute Max Profit
13786423 9 3243 1900 +1343 kiln 0x88a53ec4... BloXroute Max Profit
13785696 5 3178 1839 +1339 whale_0xedc6 0xb26f9666... BloXroute Max Profit
13788988 2 3130 1792 +1338 p2porg 0x850b00e0... BloXroute Regulated
13790481 3 3145 1808 +1337 p2porg 0x88a53ec4... BloXroute Regulated
13791498 8 3222 1885 +1337 everstake 0xb26f9666... Titan Relay
13785956 0 3098 1761 +1337 p2porg 0xb26f9666... Aestus
13789241 0 3098 1761 +1337 whale_0x8ebd 0x88857150... Ultra Sound
13790261 18 3376 2040 +1336 kelp 0x8527d16c... Ultra Sound
13785422 0 3097 1761 +1336 whale_0x8ebd 0xa230e2cf... Flashbots
13787320 6 3189 1854 +1335 blockdaemon_lido 0xb26f9666... Titan Relay
13787257 0 3096 1761 +1335 gateway.fmas_lido 0xac23f8cc... Ultra Sound
13786820 10 3250 1916 +1334 everstake 0x853b0078... Aestus
13784440 8 3219 1885 +1334 p2porg 0x850b00e0... BloXroute Regulated
13790974 5 3172 1839 +1333 figment 0x8db2a99d... BloXroute Max Profit
13789087 4 3156 1823 +1333 whale_0x8ebd 0xb26f9666... Titan Relay
13786251 1 3109 1777 +1332 p2porg 0x850b00e0... BloXroute Regulated
13784483 1 3108 1777 +1331 p2porg 0x88857150... Ultra Sound
13786778 1 3105 1777 +1328 p2porg 0x8527d16c... Ultra Sound
13785452 2 3117 1792 +1325 kraken 0x82c466b9... EthGas
13786835 8 3209 1885 +1324 kiln 0x850b00e0... BloXroute Max Profit
13790976 0 3085 1761 +1324 ether.fi 0xb26f9666... Titan Relay
13786788 14 3300 1978 +1322 p2porg 0x856b0004... Ultra Sound
13785284 6 3175 1854 +1321 whale_0xdd6c 0xb7c5fbdd... BloXroute Max Profit
13788007 0 3082 1761 +1321 p2porg 0x852b0070... Ultra Sound
13785554 10 3236 1916 +1320 kiln 0xac23f8cc... BloXroute Max Profit
13784650 0 3080 1761 +1319 kiln 0x852b0070... Aestus
13785125 0 3080 1761 +1319 p2porg 0x88a53ec4... BloXroute Max Profit
13787990 18 3358 2040 +1318 everstake 0x853b0078... Aestus
13784726 3 3125 1808 +1317 kiln 0x88a53ec4... BloXroute Max Profit
13791553 0 3077 1761 +1316 p2porg 0x823e0146... BloXroute Max Profit
13785246 7 3184 1870 +1314 whale_0x8ebd 0x88a53ec4... BloXroute Max Profit
13791152 0 3074 1761 +1313 p2porg 0x8527d16c... Ultra Sound
13790370 0 3072 1761 +1311 0x8527d16c... Ultra Sound
13786750 5 3148 1839 +1309 ether.fi 0xb7c5beef... EthGas
13788336 0 3070 1761 +1309 p2porg 0x88a53ec4... BloXroute Max Profit
13785423 10 3224 1916 +1308 0x853b0078... Agnostic Gnosis
13791364 0 3068 1761 +1307 whale_0xedc6 0x852b0070... BloXroute Max Profit
13790080 21 3392 2086 +1306 p2porg 0x8527d16c... Ultra Sound
13790655 7 3175 1870 +1305 mantle 0x8527d16c... Ultra Sound
13789585 0 3065 1761 +1304 mantle 0x8527d16c... Ultra Sound
13785033 0 3063 1761 +1302 kiln 0xb67eaa5e... BloXroute Max Profit
13789047 11 3233 1931 +1302 whale_0x8ebd 0x856b0004... Ultra Sound
13791137 1 3078 1777 +1301 whale_0x23be 0x853b0078... Flashbots
13788384 0 3062 1761 +1301 whale_0x8ebd 0x8a850621... Ultra Sound
13787098 2 3092 1792 +1300 kiln 0x8db2a99d... BloXroute Max Profit
13789441 0 3061 1761 +1300 0x852b0070... BloXroute Max Profit
13789885 3 3107 1808 +1299 whale_0x8ebd 0x88857150... Ultra Sound
13789960 0 3060 1761 +1299 p2porg 0xb67eaa5e... BloXroute Max Profit
Total anomalies: 311

Anomalies by relay

Which relays produce the most propagation anomalies?

Show code
if n_anomalies > 0:
    # Count anomalies by relay
    relay_counts = df_outliers["relay"].value_counts().reset_index()
    relay_counts.columns = ["relay", "anomaly_count"]
    
    # Get total blocks per relay for context
    df_anomaly["relay"] = df_anomaly["winning_relays"].apply(lambda x: x[0] if len(x) > 0 else "Local")
    total_by_relay = df_anomaly.groupby("relay").size().reset_index(name="total_blocks")
    
    relay_counts = relay_counts.merge(total_by_relay, on="relay")
    relay_counts["anomaly_rate"] = relay_counts["anomaly_count"] / relay_counts["total_blocks"] * 100
    relay_counts = relay_counts.sort_values("anomaly_rate", ascending=True)
    
    fig = go.Figure()
    
    fig.add_trace(go.Bar(
        y=relay_counts["relay"],
        x=relay_counts["anomaly_count"],
        orientation="h",
        marker_color="#e74c3c",
        text=relay_counts.apply(lambda r: f"{r['anomaly_count']}/{r['total_blocks']} ({r['anomaly_rate']:.1f}%)", axis=1),
        textposition="outside",
        hovertemplate="<b>%{y}</b><br>Anomalies: %{x}<br>Total blocks: %{customdata[0]:,}<br>Rate: %{customdata[1]:.1f}%<extra></extra>",
        customdata=np.column_stack([relay_counts["total_blocks"], relay_counts["anomaly_rate"]]),
    ))
    
    fig.update_layout(
        margin=dict(l=150, r=80, t=30, b=60),
        xaxis=dict(title="Number of anomalies"),
        yaxis=dict(title=""),
        height=350,
    )
    fig.show(config={"responsive": True})

Anomalies by proposer entity

Which proposer entities produce the most propagation anomalies?

Show code
if n_anomalies > 0:
    # Count anomalies by proposer entity
    proposer_counts = df_outliers["proposer"].value_counts().reset_index()
    proposer_counts.columns = ["proposer", "anomaly_count"]
    
    # Get total blocks per proposer for context
    df_anomaly["proposer"] = df_anomaly["proposer_entity"].fillna("Unknown")
    total_by_proposer = df_anomaly.groupby("proposer").size().reset_index(name="total_blocks")
    
    proposer_counts = proposer_counts.merge(total_by_proposer, on="proposer")
    proposer_counts["anomaly_rate"] = proposer_counts["anomaly_count"] / proposer_counts["total_blocks"] * 100
    
    # Show top 15 by anomaly count
    proposer_counts = proposer_counts.nlargest(15, "anomaly_rate").sort_values("anomaly_rate", ascending=True)
    
    fig = go.Figure()
    
    fig.add_trace(go.Bar(
        y=proposer_counts["proposer"],
        x=proposer_counts["anomaly_count"],
        orientation="h",
        marker_color="#e74c3c",
        text=proposer_counts.apply(lambda r: f"{r['anomaly_count']}/{r['total_blocks']} ({r['anomaly_rate']:.1f}%)", axis=1),
        textposition="outside",
        hovertemplate="<b>%{y}</b><br>Anomalies: %{x}<br>Total blocks: %{customdata[0]:,}<br>Rate: %{customdata[1]:.1f}%<extra></extra>",
        customdata=np.column_stack([proposer_counts["total_blocks"], proposer_counts["anomaly_rate"]]),
    ))
    
    fig.update_layout(
        margin=dict(l=150, r=80, t=30, b=60),
        xaxis=dict(title="Number of anomalies"),
        yaxis=dict(title=""),
        height=450,
    )
    fig.show(config={"responsive": True})

Anomalies by builder

Which builders produce the most propagation anomalies? (Truncated pubkeys shown for MEV blocks)

Show code
if n_anomalies > 0:
    # Count anomalies by builder
    builder_counts = df_outliers["builder"].value_counts().reset_index()
    builder_counts.columns = ["builder", "anomaly_count"]
    
    # Get total blocks per builder for context
    df_anomaly["builder"] = df_anomaly["winning_builder"].apply(
        lambda x: f"{x[:10]}..." if pd.notna(x) and x else "Local"
    )
    total_by_builder = df_anomaly.groupby("builder").size().reset_index(name="total_blocks")
    
    builder_counts = builder_counts.merge(total_by_builder, on="builder")
    builder_counts["anomaly_rate"] = builder_counts["anomaly_count"] / builder_counts["total_blocks"] * 100
    
    # Show top 15 by anomaly count
    builder_counts = builder_counts.nlargest(15, "anomaly_rate").sort_values("anomaly_rate", ascending=True)
    
    fig = go.Figure()
    
    fig.add_trace(go.Bar(
        y=builder_counts["builder"],
        x=builder_counts["anomaly_count"],
        orientation="h",
        marker_color="#e74c3c",
        text=builder_counts.apply(lambda r: f"{r['anomaly_count']}/{r['total_blocks']} ({r['anomaly_rate']:.1f}%)", axis=1),
        textposition="outside",
        hovertemplate="<b>%{y}</b><br>Anomalies: %{x}<br>Total blocks: %{customdata[0]:,}<br>Rate: %{customdata[1]:.1f}%<extra></extra>",
        customdata=np.column_stack([builder_counts["total_blocks"], builder_counts["anomaly_rate"]]),
    ))
    
    fig.update_layout(
        margin=dict(l=150, r=80, t=30, b=60),
        xaxis=dict(title="Number of anomalies"),
        yaxis=dict(title=""),
        height=450,
    )
    fig.show(config={"responsive": True})

Anomalies by blob count

Are anomalies more common at certain blob counts?

Show code
if n_anomalies > 0:
    # Count anomalies by blob count
    blob_anomalies = df_outliers.groupby("blob_count").size().reset_index(name="anomaly_count")
    blob_total = df_anomaly.groupby("blob_count").size().reset_index(name="total_blocks")
    
    blob_stats = blob_total.merge(blob_anomalies, on="blob_count", how="left").fillna(0)
    blob_stats["anomaly_count"] = blob_stats["anomaly_count"].astype(int)
    blob_stats["anomaly_rate"] = blob_stats["anomaly_count"] / blob_stats["total_blocks"] * 100
    
    fig = go.Figure()
    
    fig.add_trace(go.Bar(
        x=blob_stats["blob_count"],
        y=blob_stats["anomaly_count"],
        marker_color="#e74c3c",
        hovertemplate="<b>%{x} blobs</b><br>Anomalies: %{y}<br>Total: %{customdata[0]:,}<br>Rate: %{customdata[1]:.1f}%<extra></extra>",
        customdata=np.column_stack([blob_stats["total_blocks"], blob_stats["anomaly_rate"]]),
    ))
    
    fig.update_layout(
        margin=dict(l=60, r=30, t=30, b=60),
        xaxis=dict(title="Blob count", dtick=1),
        yaxis=dict(title="Number of anomalies"),
        height=350,
    )
    fig.show(config={"responsive": True})