Skip to content

feat: enhance batch signing logic in eigenDA exporter #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions internal/avs/eigenda/eigenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
}

// Build the filter query
query := ethereum.FilterQuery{

Check failure on line 226 in internal/avs/eigenda/eigenda.go

View workflow job for this annotation

GitHub Actions / lint

undefined: ethereum (typecheck)
FromBlock: fromBlock,
ToBlock: toBlock,
Addresses: []common.Address{
Expand Down Expand Up @@ -288,6 +288,7 @@

// Iterate over the not signers and check if they are operators as not signers
for _, operator := range e.operators {
signed := true
for _, pubkey := range input.NonSignerStakesAndSignature.NonSignerPubkeys {
operatorBLSPubkeyX, operatorBLSPubkeyY, err := getOperatorBLSPubkey(operator)
if err != nil {
Expand All @@ -296,8 +297,13 @@
if operatorBLSPubkeyX.Cmp(pubkey.X) == 0 || operatorBLSPubkeyY.Cmp(pubkey.Y) == 0 {
metricOnchainBatches.WithLabelValues(operator.Name, e.network, "missed").Inc()
slog.Info("operator failed to sign batch |", "avsEnv", e.avsEnv, "blockNumber", log.BlockNumber, "txIndex", log.TxIndex, "operator", operator.Name)
signed = false
}
}
if signed {
metricOnchainBatches.WithLabelValues(operator.Name, e.network, "signed").Inc()
slog.Info("operator signed batch |", "avsEnv", e.avsEnv, "blockNumber", log.BlockNumber, "txIndex", log.TxIndex, "operator", operator.Name)
}
}

return nil
Expand Down
Loading