From 266b8e2d511ca04859de4b04b16e38975cbcf8a9 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 | 2 +- ledger/src/signer/src/bc_advance.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 29249010..b596e535 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -6,7 +6,7 @@ jobs: call-run-c-linter-on-branches: strategy: matrix: - branch: [master, develop-2.3] + branch: ${{ fromJSON(vars.TARGET_BRANCHES_PERIODIC_RUNS) }} 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);