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);