Skip to content

Commit

Permalink
Update full sync CI (#1560)
Browse files Browse the repository at this point in the history
* Fix node stuck on invalidated block

* Show log file
  • Loading branch information
Jouzo authored Nov 13, 2022
1 parent 23c76b3 commit 3b23597
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/fullsync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ jobs:
- name: Sync and Diff
run: ./sync_then_diff.sh

- name: Show Debug Log
- name: Show debug.log
run: cat $DATADIR/debug.log
if: ${{ failure() || success() }}

- name: Show log file
run: cat $DATADIR/debug-tmp-$STOP_BLOCK.log
if: ${{ failure() || success() }}
3 changes: 3 additions & 0 deletions ci/parallel_sync/sync_then_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ main() {
CUR_BLOCK=$($DEFI_CLI_CMD getblockcount || echo $BLOCK)
if [ "$CUR_BLOCK" -eq "$BLOCK" ]; then
ATTEMPTS=$((ATTEMPTS + 1))

# Handle odd case where node get stuck on previously invalidated block
$DEFI_CLI_CMD reconsiderblock $($DEFI_CLI_CMD getbestblockhash)
else
ATTEMPTS=0
fi
Expand Down

0 comments on commit 3b23597

Please sign in to comment.