Skip to content
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

[Test2] add 10s delay to USDC call #286

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- ccip-develop
- deployment-test
- feature/laggy-usdc-2

jobs:
build-and-publish:
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
tags: |
type=sha,enable={{is_default_branch}}
type=sha,format=long,enable={{is_default_branch}}
type=ref,event=branch
- name: Fetch operator-ui
shell: bash
env:
Expand Down
3 changes: 3 additions & 0 deletions core/services/ocr2/plugins/ccip/tokendata/usdc/usdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (s *TokenDataReader) ReadTokenData(ctx context.Context, msg internal.EVM2EV

s.lggr.Infow("Calling attestation API", "messageBodyHash", hexutil.Encode(messageBody[:]), "messageID", hexutil.Encode(msg.MessageId[:]))

// sleep for 10 seconds for each API call
time.Sleep(10 * time.Second)

// The attestation API expects the hash of the message body
attestationResp, err := s.callAttestationApi(ctx, utils.Keccak256Fixed(messageBody))
if err != nil {
Expand Down
Loading