From 9b0868033ede0ae72bae282559d0f7546c0e12b7 Mon Sep 17 00:00:00 2001 From: tersec Date: Tue, 17 Jan 2023 15:45:04 +0000 Subject: [PATCH] use GitHub Actions cache and upload-artifact v3 (#4516) --- .github/workflows/ci.yml | 8 ++++---- beacon_chain/consensus_object_pools/exit_pool.nim | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f468fc38..0f4c0b047 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,7 @@ jobs: - name: Restore Nim DLLs dependencies (Windows) from cache if: runner.os == 'Windows' id: windows-dlls-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: external/dlls-${{ matrix.target.cpu }} key: 'dlls-${{ matrix.target.cpu }}' @@ -159,7 +159,7 @@ jobs: - name: Restore Ethereum Foundation fixtures from cache id: fixtures-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: fixturesCache key: 'eth2-scenarios-${{ steps.fixtures_version.outputs.fixtures }}' @@ -182,7 +182,7 @@ jobs: # The upload creates a combined report that gets posted as a comment on the PR # https://github.com/EnricoMi/publish-unit-test-result-action - name: Upload combined results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Unit Test Results ${{ matrix.target.os }}-${{ matrix.target.cpu }} path: build/*.xml @@ -193,7 +193,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Event File path: ${{ github.event_path }} diff --git a/beacon_chain/consensus_object_pools/exit_pool.nim b/beacon_chain/consensus_object_pools/exit_pool.nim index 5e1fd2e8a..cf59ce367 100644 --- a/beacon_chain/consensus_object_pools/exit_pool.nim +++ b/beacon_chain/consensus_object_pools/exit_pool.nim @@ -1,5 +1,5 @@ # beacon_chain -# Copyright (c) 2020-2022 Status Research & Development GmbH +# Copyright (c) 2020-2023 Status Research & Development GmbH # Licensed and distributed under either of # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). @@ -25,12 +25,12 @@ export base, deques, sets, blockchain_dag logScope: topics = "exitpool" const - ATTESTER_SLASHINGS_BOUND* = MAX_ATTESTER_SLASHINGS * 4 - PROPOSER_SLASHINGS_BOUND* = MAX_PROPOSER_SLASHINGS * 4 - VOLUNTARY_EXITS_BOUND* = MAX_VOLUNTARY_EXITS * 4 + ATTESTER_SLASHINGS_BOUND = MAX_ATTESTER_SLASHINGS * 4 + PROPOSER_SLASHINGS_BOUND = MAX_PROPOSER_SLASHINGS * 4 + VOLUNTARY_EXITS_BOUND = MAX_VOLUNTARY_EXITS * 4 type - OnVoluntaryExitCallback* = + OnVoluntaryExitCallback = proc(data: SignedVoluntaryExit) {.gcsafe, raises: [Defect].} ExitPool* = object