Skip to content

Commit

Permalink
feat: operator uses fallback to check DisabledVerifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Jan 10, 2025
1 parent be8fd38 commit 380488c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/chainio/avs_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,15 @@ func (r *AvsReader) IsOperatorRegistered(address ethcommon.Address) (bool, error
}

func (r *AvsReader) DisabledVerifiers() (*big.Int, error) {
return r.AvsContractBindings.ServiceManager.ContractAlignedLayerServiceManagerCaller.DisabledVerifiers(&bind.CallOpts{})
num, err := r.AvsContractBindings.ServiceManager.ContractAlignedLayerServiceManagerCaller.DisabledVerifiers(&bind.CallOpts{})
if err != nil {
// Retry with fallback client
num, err = r.AvsContractBindings.ServiceManagerFallback.ContractAlignedLayerServiceManagerCaller.DisabledVerifiers(&bind.CallOpts{})
if err != nil {
r.logger.Error("Failed to fetch DisabledVerifiers", "err", err)
}
}
return num, err
}

// Returns all the "NewBatchV3" logs that have not been responded starting from the given block number
Expand Down

0 comments on commit 380488c

Please sign in to comment.