Skip to content

Correct suspended_channel and suspended_service message text. - #6

Open
echennells wants to merge 1 commit into
masterfrom
fix-suspended-error-messages
Open

Correct suspended_channel and suspended_service message text.#6
echennells wants to merge 1 commit into
masterfrom
fix-suspended-error-messages

Conversation

@echennells

Copy link
Copy Markdown
Owner

suspended_channel and suspended_service were introduced carrying the message text of sacrificed_channel (4af898f58, 2024-05-06 and 6c465034b, 2024-05-08).

suspended_channel therefore renders identically to sacrificed_channel, though the two are unrelated. sacrificed_channel is emitted continuously by block download work redistribution — measured at roughly 9k occurrences per peer per day during a testnet3 IBD. suspended_channel indicates the node suspended the network for a store prune or snapshot. The rare event is not distinguishable from routine churn in a log.

suspended_service renders as "sacrificed service", which corresponds to no error code.

The unit tests asserted the incorrect text, so they are updated alongside the messages. That is likely why this went unnoticed: correcting src/error.cpp alone fails the suite.

Both codes were added with the message text of sacrificed_channel, so
suspended_channel and sacrificed_channel render identically and cannot be
told apart in a log. sacrificed_channel is emitted continuously by block
download work redistribution, while suspended_channel indicates network
suspension for a store prune or snapshot, so the latter is not observable.

The unit tests asserted the incorrect text, so they are updated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@echennells
echennells force-pushed the fix-suspended-error-messages branch from 1f1395d to 96f9378 Compare August 24, 2026 16:31
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