Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update selector
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Sep 18, 2023
1 parent 5ea7e3b commit a7e1683
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GCR"

on:
push:
branches: [main]
branches: [main,update-oracle-assignment]
tags:
- "v*"

Expand Down
16 changes: 9 additions & 7 deletions proposer/prover_selector/eth_fee_eoa_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ func (s *ETHFeeEOASelector) AssignProver(
continue
}

ok, err := s.checkProverBalance(ctx, proverAddress)
if err != nil {
log.Warn("Failed to check prover balance", "endpoint", endpoint, "error", err)
continue
}
if !ok {
continue
if proverAddress != encoding.OracleProverAddress {
ok, err := s.checkProverBalance(ctx, proverAddress)
if err != nil {
log.Warn("Failed to check prover balance", "endpoint", endpoint, "error", err)
continue
}
if !ok {
continue
}
}

return encodedAssignment, fee, nil
Expand Down

0 comments on commit a7e1683

Please sign in to comment.