Skip to content

fix(p2p): downgrade unlinkable block error to warning during sync#3711

Merged
ety001 merged 1 commit into
ingest_pluginfrom
fix/sync-unlinkable-block-log-level
May 24, 2026
Merged

fix(p2p): downgrade unlinkable block error to warning during sync#3711
ety001 merged 1 commit into
ingest_pluginfrom
fix/sync-unlinkable-block-log-level

Conversation

@ety001

@ety001 ety001 commented May 24, 2026

Copy link
Copy Markdown
Member

During blockchain synchronization, receiving blocks from forks is expected behavior as multiple peers may be on different forks. Previously, these were logged as errors via elog(), causing log noise and false alerts.

This change:

  • Checks sync_mode in the unlinkable_block_exception handler
  • Uses fc_wlog (warning level) for sync mode instead of elog (error level)
  • Returns false immediately in sync mode, avoiding unnecessary exception propagation to node.cpp
  • Preserves existing error behavior for non-sync mode (triggers sync restart)

Fixes: Error when pushing block elog noise during sync
Reference: i-05d97adb280d9914e (steemit-production-steemd-002)

During blockchain synchronization, receiving blocks from forks is expected
behavior as multiple peers may be on different forks. Previously, these
were logged as errors via elog(), causing log noise and false alerts.

This change:
- Checks sync_mode in the unlinkable_block_exception handler
- Uses fc_wlog (warning level) for sync mode instead of elog (error level)
- Returns false immediately in sync mode, avoiding unnecessary exception
  propagation to node.cpp
- Preserves existing error behavior for non-sync mode (triggers sync restart)

Fixes: Error when pushing block elog noise during sync
Reference: i-05d97adb280d9914e (steemit-production-steemd-002)
@ety001 ety001 merged commit 4370a15 into ingest_plugin May 24, 2026
0 of 5 checks passed
@ety001 ety001 deleted the fix/sync-unlinkable-block-log-level branch May 24, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant