diff --git a/.github/workflows/fullsync-tests.yml b/.github/workflows/fullsync-tests.yml index 2616a63119..06cff80bca 100644 --- a/.github/workflows/fullsync-tests.yml +++ b/.github/workflows/fullsync-tests.yml @@ -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() }} diff --git a/ci/parallel_sync/sync_then_diff.sh b/ci/parallel_sync/sync_then_diff.sh index 5ad14909bd..961e5a8d07 100755 --- a/ci/parallel_sync/sync_then_diff.sh +++ b/ci/parallel_sync/sync_then_diff.sh @@ -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