Skip to content

feat: multiple chronik servers#1010

Merged
Klakurka merged 11 commits intomasterfrom
feat/multiple-chornik-servers
Jun 4, 2025
Merged

feat: multiple chronik servers#1010
Klakurka merged 11 commits intomasterfrom
feat/multiple-chornik-servers

Conversation

@chedieck
Copy link
Copy Markdown
Collaborator

@chedieck chedieck commented Jun 2, 2025

Related to #

Description

Updates chronik implementation & ecashaddrjs to allow for multiple chronik URLs.

Test plan

Update your paybutton-config.json so that the XEC and BCH URLs are now arrays, such as in the example-config.json:

-    "ecash": "https://chronik.fabien.cash",
+    "ecash": [
+      "https://xec.paybutton.org",
+      "https://chronik1.alitayin.com",
+      "https://chronik2.alitayin.com",
+      "https://chronik.e.cash",
+      "https://chronik-native1.fabien.cash",
+      "https://chronik-native2.fabien.cash",
+      "https://chronik-native3.fabien.cash",
+      "https://chronik.pay2stay.com/xec",
+      "https://chronik.pay2stay.com/xec2"
+    ],
-   "bitcoincash": "https://chronik.pay2stay.com/bch"
+   "bitcoincash": ["https://bch.paybutton.io"]

Restart the containers and make sure it all works normally.

@Klakurka Klakurka changed the title feat: multiple chornik servers feat: multiple chronik servers Jun 2, 2025
@Klakurka Klakurka self-requested a review June 2, 2025 19:20
Klakurka
Klakurka previously approved these changes Jun 3, 2025
Copy link
Copy Markdown
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.

I had a feeling that this was going to work but im impressed by how well it does.

Payment latency is down to just under 1s.

We'll have to confirm that we notice a difference in prod but if that performance mostly holds up, we're going to need to investigate what's going on with our Chronik node as it shouldn't be so slow especially since we're connecting to the direct address and not going through cloudfront.

"https://chronik.pay2stay.com/xec2"
],
"bitcoincash": ["https://bch.paybutton.io"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: remove extra space.

@Klakurka
Copy link
Copy Markdown
Member

Klakurka commented Jun 3, 2025

Is there a way to easily tell which Chronik server it's connecting to?

@chedieck
Copy link
Copy Markdown
Collaborator Author

chedieck commented Jun 3, 2025

Is there a way to easily tell which Chronik server it's connecting to?

It appears in the beggining, but I'll make it more clear

@chedieck
Copy link
Copy Markdown
Collaborator Author

chedieck commented Jun 3, 2025

Added URL list to admin panel

type: {
"ecash": "https://chronik.fabien.cash",
"bitcoincash": "https://chronik.pay2stay.com/bch"
"ecash": ["https://xec.paybutton.org", "https://chronik.fabien.cash"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be .io.

@chedieck chedieck requested a review from Klakurka June 3, 2025 23:31
@Klakurka Klakurka merged commit def434f into master Jun 4, 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.

2 participants