Skip to content

fix(blockchain): don't shadow err in msg_sender.send retry loop - #942

Merged
alpinskiy-top merged 1 commit into
masterfrom
malpinskiy/work
Aug 6, 2026
Merged

alpinskiy-top merged 1 commit into
masterfrom
malpinskiy/work

Conversation

@alpinskiy-top

Copy link
Copy Markdown
Collaborator

_, err := c.SendMessage(ctx2, payload) declared a loop-scoped err instead of assigning the function-scoped one, so send() returned nil (i.e. success) whenever every liteserver attempt failed, causing /v2/blockchain/message to report 200 OK for messages that were never actually sent.

_, err := c.SendMessage(ctx2, payload) declared a loop-scoped err instead
of assigning the function-scoped one, so send() returned nil (i.e. success)
whenever every liteserver attempt failed, causing /v2/blockchain/message to
report 200 OK for messages that were never actually sent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@alpinskiy-top
alpinskiy-top merged commit 552e375 into master Aug 6, 2026
1 check passed
@alpinskiy-top
alpinskiy-top deleted the malpinskiy/work branch August 6, 2026 11: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