Skip to content

Conversation

@chedieck
Copy link
Collaborator

@chedieck chedieck commented Apr 8, 2025

Related to #

Description

Fixes issue where the websocket broadcast TX wouldn't appear for the client.

Test plan

Check if either a paybutton client hooked up to localhost OR localhost:3000/button/ are both receiving living updates when a tx arrive.

@Klakurka Klakurka requested review from Klakurka, ScottMcDermid and lissavxo and removed request for ScottMcDermid and lissavxo April 8, 2025 00:27
Copy link
Member

@Klakurka Klakurka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment nit; non-blocking.

const userIp = headersForwardedAddresses === undefined ? '' : headersForwardedAddresses.split(',')[0]
if (userIp === '') {
throw new Error('Local IP not defined.')
console.error('Local IP not defined.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this is a "so what" error message. What needs to happen for this to resolve itself? What would cause it in the first place?

@Klakurka Klakurka merged commit e1c1177 into master Apr 8, 2025
2 checks passed
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.

3 participants