Skip to content
Draft
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
40 changes: 39 additions & 1 deletion .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
contents: read
# For golangci-lint-action's `only-new-issues` option.
pull-requests: read
id-token: write
runs-on: ${{ needs.runner-config.outputs.lint-runner }}
strategy:
fail-fast: false
Expand All @@ -137,10 +138,22 @@ jobs:
with:
persist-credentials: false

- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"

- name: Golang Lint (${{ matrix.modules }})
id: golang-lint
uses: ./.github/actions/golangci-lint
timeout-minutes: 20
env:
GOPRIVATE: github.com/smartcontractkit/chainlink-internal-solana
with:
go-directory: ${{ matrix.modules }}

Expand Down Expand Up @@ -201,6 +214,7 @@ jobs:
# We explicitly have this env var not be "CL_DATABASE_URL" to avoid having it be used by core related tests
# when they should not be using it, while still allowing us to DRY up the setup
DB_URL: postgresql://postgres:postgres@localhost:5432/chainlink_test?sslmode=disable
GOPRIVATE: github.com/smartcontractkit/chainlink-internal-solana
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -257,6 +271,16 @@ jobs:
with:
persist-credentials: false

- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"

- name: Setup Go
if: ${{ matrix.type.should-run == 'true' }}
uses: ./.github/actions/setup-go
Expand Down Expand Up @@ -301,7 +325,7 @@ jobs:

- name: Download Go vendor packages
if: ${{ matrix.type.should-run == 'true' }}
run: go mod download
run: GOPRIVATE=github.com/smartcontractkit/chainlink-internal-solana go mod download

- name: Setup DB
if: ${{ matrix.type.should-run == 'true' }}
Expand Down Expand Up @@ -540,6 +564,11 @@ jobs:
name: Clean Go Tidy & Generate
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu22.04-8cores-32GB
env:
GOPRIVATE: github.com/smartcontractkit/chainlink-internal-solana
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -548,6 +577,15 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0
- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"
- name: Setup Go
uses: ./.github/actions/setup-go
with:
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/cre-system-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
matrix: ${{ steps.define-matrix.outputs.matrix }}
permissions:
contents: read
id-token: write
env:
GOPRIVATE: github.com/smartcontractkit/chainlink-internal-solana
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -52,6 +55,16 @@ jobs:
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1

- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"

- name: Set up Go
id: setup-go
Expand Down Expand Up @@ -180,6 +193,16 @@ jobs:
with:
ref: ${{ inputs.chainlink_version }}
persist-credentials: false

- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"

- name: Set up Go
id: setup-go
Expand Down Expand Up @@ -295,16 +318,6 @@ jobs:
exit $exit_code
fi

- name: Setup GitHub token using GATI
id: github-token
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/1.0.0
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: us-west-2
aws-role-duration-seconds: "1800"
set-git-config: "true"

- name: Run CRE${{ matrix.tests.cre_version }} Smoke system tests
id: run-tests
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ install-plugins-local: ## Build & install local plugins
go install $(GOFLAGS) ./plugins/cmd/capabilities/log-event-trigger

.PHONY: make install-plugins
install-plugins: install-plugins-local install-plugins-public ## Build and install local and public plugins via loopinstall
install-plugins: install-plugins-local install-plugins-public install-plugins-private## Build and install local and public plugins via loopinstall

.PHONY: docker ## Build the chainlink docker image
docker:
Expand Down Expand Up @@ -168,7 +168,7 @@ operator-ui: ## Fetch the frontend
generate: codecgen mockery protoc gomods modgraph ## Execute all go:generate commands.
## Updating PATH makes sure that go:generate uses the version of protoc installed by the protoc make command.
export PATH="$(HOME)/.local/bin:$(PATH)"; gomods -w go generate -x ./...
find . -type f -name .mockery.yaml -execdir mockery \; ## Execute mockery for all .mockery.yaml files
GOPRIVATE=github.com/smartcontractkit/* find . -type f -name .mockery.yaml -execdir mockery \; ## Execute mockery for all .mockery.yaml files

.PHONY: rm-mocked
rm-mocked:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (e *ServerRequest) OnMessage(ctx context.Context, msg *types.MessageBody) e
}

e.lggr.Debugw("OnMessage called for request", "calls", len(e.requesters),
"hasResponse", e.response != nil, "requester", requester.String(), "minRequsters", e.callingDon.F+1)
"hasResponse", e.response != nil, "requester", requester.String(), "minRequesters", e.callingDon.F+1)

if e.minimumRequiredRequestsReceived() && !e.hasResponse() {
switch e.method {
Expand Down
14 changes: 7 additions & 7 deletions core/capabilities/vault/gw_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (h *GatewayHandler) handleSecretsCreate(ctx context.Context, gatewayID stri

jsonResponse, err := toJSONResponse(vaultCapResponse, req.Method)
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}
return jsonResponse
}
Expand All @@ -178,7 +178,7 @@ func (h *GatewayHandler) handleSecretsUpdate(ctx context.Context, gatewayID stri

jsonResponse, err := toJSONResponse(vaultCapResponse, req.Method)
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}
return jsonResponse
}
Expand Down Expand Up @@ -212,12 +212,12 @@ func (h *GatewayHandler) handleSecretsGet(ctx context.Context, gatewayID string,
err = proto.Unmarshal(vaultCapResponse.Payload, vaultResponseProto)
if err != nil {
h.lggr.Errorf("Debugging: handleSecretsCreate failed to unmarshal response: %s. Payload was: %s", err.Error(), string(vaultCapResponse.Payload))
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}

vaultAPIResponseBytes, err := json.Marshal(vaultResponseProto)
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}
vaultAPIResponseJSON := json.RawMessage(vaultAPIResponseBytes)
return &jsonrpc.Response[json.RawMessage]{
Expand All @@ -241,7 +241,7 @@ func (h *GatewayHandler) handleSecretsDelete(ctx context.Context, gatewayID stri

resultBytes, err := resp.ToJSONRPCResult()
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}

return &jsonrpc.Response[json.RawMessage]{
Expand All @@ -265,7 +265,7 @@ func (h *GatewayHandler) handleSecretsList(ctx context.Context, gatewayID string

resultBytes, err := resp.ToJSONRPCResult()
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}

return &jsonrpc.Response[json.RawMessage]{
Expand All @@ -289,7 +289,7 @@ func (h *GatewayHandler) handlePublicKeyGet(ctx context.Context, gatewayID strin

b, err := json.Marshal(resp)
if err != nil {
return h.errorResponse(ctx, gatewayID, req, api.NodeReponseEncodingError, err)
return h.errorResponse(ctx, gatewayID, req, api.NodeResponseEncodingError, err)
}

return &jsonrpc.Response[json.RawMessage]{
Expand Down
18 changes: 12 additions & 6 deletions core/chainlink.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ WORKDIR /chainlink

COPY GNUmakefile package.json ./
COPY tools/bin/ldflags ./tools/bin/
COPY ./plugins/scripts/setup_git_auth.sh ./

ADD go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
ENV GIT_CONFIG_GLOBAL=/tmp/gitconfig-github-token
RUN --mount=type=secret,id=GIT_AUTH_TOKEN \
--mount=type=cache,target=/go/pkg/mod \
set -e && \
trap 'rm -f "$GIT_CONFIG_GLOBAL"' EXIT && \
./setup_git_auth.sh && \
GOPRIVATE=github.com/smartcontractkit/* go mod download
COPY . .

# Install Delve for debugging with cache mounts
Expand All @@ -30,8 +36,7 @@ ARG VERSION_TAG
# Flag to control whether this is a prod build (default: true)
ARG CL_IS_PROD_BUILD=true

ENV CL_LOOPINSTALL_OUTPUT_DIR=/tmp/loopinstall-output \
GIT_CONFIG_GLOBAL=/tmp/gitconfig-github-token
ENV CL_LOOPINSTALL_OUTPUT_DIR=/tmp/loopinstall-output
RUN --mount=type=secret,id=GIT_AUTH_TOKEN \
--mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
Expand All @@ -56,11 +61,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Build chainlink.
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=secret,id=GIT_AUTH_TOKEN \
--mount=type=cache,target=/root/.cache/go-build \
if [ "$CL_IS_PROD_BUILD" = "false" ]; then \
GOBIN=/gobins make install-chainlink-dev; \
GOPRIVATE=github.com/smartcontractkit/* GOBIN=/gobins make install-chainlink-dev; \
else \
GOBIN=/gobins make install-chainlink; \
GOPRIVATE=github.com/smartcontractkit/* GOBIN=/gobins make install-chainlink; \
fi

##
Expand Down
6 changes: 3 additions & 3 deletions core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ require (
github.com/rs/zerolog v1.34.0
github.com/shopspring/decimal v1.4.0
github.com/smartcontractkit/chainlink-automation v0.8.1
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260129103204-4c8453dd8139
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203025122-0da324f1967c
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260203202624-5101f4d33736
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203182613-20f261f2d612
github.com/smartcontractkit/chainlink-data-streams v0.1.11
github.com/smartcontractkit/chainlink-deployments-framework v0.78.1-0.20260130170219-7f3060452d15
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260203161436-cb489cf2896d
Expand Down Expand Up @@ -491,7 +491,7 @@ require (
github.com/smartcontractkit/chain-selectors v1.0.91 // indirect
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251212131933-e5e85d6fa4d3 // indirect
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116110203-68d767f52164 // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260203202624-5101f4d33736 // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 // indirect
github.com/smartcontractkit/chainlink-ccv v0.0.0-20260122132406-0ada7a3fe04a // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20251211140724-319861e514c4 // indirect
Expand Down
12 changes: 6 additions & 6 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1617,20 +1617,20 @@ github.com/smartcontractkit/chainlink-aptos v0.0.0-20251212131933-e5e85d6fa4d3 h
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251212131933-e5e85d6fa4d3/go.mod h1:OywVThRaVXwknATT2B8QAwjOJ1LoYBB9bTsmRpf6RPw=
github.com/smartcontractkit/chainlink-automation v0.8.1 h1:sTc9LKpBvcKPc1JDYAmgBc2xpDKBco/Q4h4ydl6+UUU=
github.com/smartcontractkit/chainlink-automation v0.8.1/go.mod h1:Iij36PvWZ6blrdC5A/nrQUBuf3MH3JvsBB9sSyc9W08=
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260129103204-4c8453dd8139 h1:OeZ/wkrH9pRogFTUE9TrSncYA/xLTj2ui5VmkX0/6ss=
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260129103204-4c8453dd8139/go.mod h1:ZtZ+wtqU9JsJEmbiCsavVVEbhywpgMF7q/IpD9Eaq48=
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260203202624-5101f4d33736 h1:h2r/UWIJI1zP/I8IwmmJ44aAfPZZcRgfFjHAzehqqGQ=
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260203202624-5101f4d33736/go.mod h1:uFQVDhcQrxBhQmEL1Y0kuP1QI0rw8eK9k84Q0ESUYWw=
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116110203-68d767f52164 h1:AZNglhdSjARt6UAZExlV1hf48nDSQvCQcCTdaby0258=
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116110203-68d767f52164/go.mod h1:Gl35ExaFLinqVhp50+Yq1GnMuHb3fnDtZUFPCtcfV3M=
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d h1:xdFpzbApEMz4Rojg2Y2OjFlrh0wu7eB10V2tSZGW5y8=
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d/go.mod h1:bgmqE7x9xwmIVr8PqLbC0M5iPm4AV2DBl596lO6S5Sw=
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260203202624-5101f4d33736 h1:/tBwPKX0ATKDLfcwOqiDHsIQ/Z1VVxsI37avumwiypw=
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260203202624-5101f4d33736/go.mod h1:wuhagkM/lU0GbV2YcrROOH0GlsfXJYwm6qmpa4CK70w=
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA=
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg=
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260129103204-4c8453dd8139 h1:gv/LQsSNon2/pS2CE/5auodMmHvUw7IKXzPMrgfPLBI=
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260129103204-4c8453dd8139/go.mod h1:gUbichNQBqk+fBF2aV40ZkzFmAJ8SygH6DEPd3cJkQE=
github.com/smartcontractkit/chainlink-ccv v0.0.0-20260122132406-0ada7a3fe04a h1:5FxRKkjXvQvPlKx60ELXgOsn7NQIkBj/Au1Z6jpMfjM=
github.com/smartcontractkit/chainlink-ccv v0.0.0-20260122132406-0ada7a3fe04a/go.mod h1:Xe0SH5IHtGkCW6sy/EdBRPKD5L+U52HgoGfl0KDP/lw=
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203025122-0da324f1967c h1:XnCoZzYws0AYvJWDpNoQQ5ZPBdz/x4ux4Lnqlwnb4jo=
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203025122-0da324f1967c/go.mod h1:zBuRC7el/pQQB95t7JnLOvCfZ3lmi5jjXYRUY2XUD+g=
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203182613-20f261f2d612 h1:StSBoBt9m8gX76B6saXTGJ2eV6rBZIsfu3j6eUTzuNk=
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260203182613-20f261f2d612/go.mod h1:zBuRC7el/pQQB95t7JnLOvCfZ3lmi5jjXYRUY2XUD+g=
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20251211140724-319861e514c4 h1:NOUsjsMzNecbjiPWUQGlRSRAutEvCFrqqyETDJeh5q4=
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20251211140724-319861e514c4/go.mod h1:Zpvul9sTcZNAZOVzt5vBl1XZGNvQebFpnpn3/KOQvOQ=
github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20251215152504-b1e41f508340 h1:PsjEI+5jZIz9AS4eOsLS5VpSWJINf38clXV3wryPyMk=
Expand Down
10 changes: 5 additions & 5 deletions core/services/gateway/api/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
UnsupportedDONIdError
HandlerError
RequestTimeoutError
NodeReponseEncodingError
NodeResponseEncodingError
FatalError
UnsupportedMethodError
InvalidParamsError
Expand All @@ -31,8 +31,8 @@ func (e ErrorCode) String() string {
return "HandlerError"
case RequestTimeoutError:
return "RequestTimeoutError"
case NodeReponseEncodingError:
return "NodeReponseEncodingError"
case NodeResponseEncodingError:
return "NodeResponseEncodingError"
case FatalError:
return "FatalError"
case UnsupportedMethodError:
Expand All @@ -59,7 +59,7 @@ func ToJSONRPCErrorCode(errorCode ErrorCode) int64 {
InvalidParamsError: jsonrpc2.ErrInvalidParams, // Invalid Params
HandlerError: jsonrpc2.ErrInvalidRequest, // Invalid Request
RequestTimeoutError: jsonrpc2.ErrServerOverloaded, // Server Error
NodeReponseEncodingError: jsonrpc2.ErrInternal, // Internal Error
NodeResponseEncodingError: jsonrpc2.ErrInternal, // Internal Error
FatalError: jsonrpc2.ErrInternal, // Internal Error
UnsupportedMethodError: jsonrpc2.ErrMethodNotFound, // Method Not Found
StaleNodeResponseError: jsonrpc2.ErrInternal, // Internal Error
Expand Down Expand Up @@ -104,7 +104,7 @@ func ToHttpErrorCode(errorCode ErrorCode) int {
HandlerError: 400, // Bad Request
InvalidParamsError: 400, // Bad Request
RequestTimeoutError: 504, // Gateway Timeout
NodeReponseEncodingError: 500, // Internal Server Error
NodeResponseEncodingError: 500, // Internal Server Error
FatalError: 500, // Internal Server Error
StaleNodeResponseError: 500, // Internal Server Error
ConflictError: 409, // Conflict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (h *functionsHandler) processHeartbeatResponse(response *api.Message, respo
codec := &api.JsonRPCCodec{}
payloadJson, err := json.Marshal(payload)
if err != nil {
return &handlers.UserCallbackPayload{RawResponse: codec.EncodeLegacyResponse(&userResponse), ErrorCode: api.NodeReponseEncodingError}, nil, nil
return &handlers.UserCallbackPayload{RawResponse: codec.EncodeLegacyResponse(&userResponse), ErrorCode: api.NodeResponseEncodingError}, nil, nil
}
userResponse.Body.Payload = payloadJson
return &handlers.UserCallbackPayload{RawResponse: codec.EncodeLegacyResponse(&userResponse), ErrorCode: api.NoError}, nil, nil
Expand Down
Loading
Loading