From eb85bafa2a0d568c30e72e65536d0f440ccbd980 Mon Sep 17 00:00:00 2001 From: Ariel Mendelzon Date: Wed, 8 Nov 2023 01:40:23 +1300 Subject: [PATCH] Third test --- .github/workflows/periodic.yml | 5 ++++- ledger/src/signer/src/bc_advance.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 29249010..d85ccb42 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -2,11 +2,14 @@ name: Periodic workflow run on: [push] +env: + branches: [master, develop-2.3] + jobs: call-run-c-linter-on-branches: strategy: matrix: - branch: [master, develop-2.3] + branch: ${{ env.branches }} uses: ./.github/workflows/lint-c.yml with: branch: ${{ matrix.branch }} diff --git a/ledger/src/signer/src/bc_advance.c b/ledger/src/signer/src/bc_advance.c index 0f84c376..4d289834 100644 --- a/ledger/src/signer/src/bc_advance.c +++ b/ledger/src/signer/src/bc_advance.c @@ -391,9 +391,8 @@ static void bc_mm_header_received() { if (PROCESSING_BLOCK()) { // First block: perform blockchain advance prologue // Otherwise: verify block chains to parent - if (curr_block == 0) { - bc_adv_prologue(); - } else if (HNEQ(aux_bc_st.prev_parent_hash, block.block_hash)) { + if (curr_block == 0) { bc_adv_prologue(); + } else if (HNEQ(aux_bc_st.prev_parent_hash, block.block_hash)) { LOG_HEX("PAR", aux_bc_st.prev_parent_hash, HASH_LENGTH); LOG_HEX("BLK", block.block_hash, HASH_LENGTH); FAIL(CHAIN_MISMATCH);