Skip to content

Commit

Permalink
Third test
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelzon committed Nov 7, 2023
1 parent b0448a3 commit eb85baf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 2 additions & 3 deletions ledger/src/signer/src/bc_advance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb85baf

Please sign in to comment.