Skip to content

Commit

Permalink
Add PIVX Labs RPC + fix Node selector (#397)
Browse files Browse the repository at this point in the history
* Add PIVX Labs RPC + fix Node selector

* Switch default Node to PIVX Labs
  • Loading branch information
JSKitty authored Sep 30, 2024
1 parent 5ce8211 commit 1cda0e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions chain_params.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{ "name": "zkBitcoin", "url": "https://zkbitcoin.com" }
],
"Nodes": [
{ "name": "PIVX Labs", "url": "https://rpc.pivxla.bz/mainnet" },
{ "name": "Duddino", "url": "https://rpc.duddino.com/mainnet" }
],
"Consensus": {},
Expand Down
7 changes: 7 additions & 0 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ export async function start() {
);
};

// Hook up the 'node' select UI
document.getElementById('node').onchange = function (evt) {
setNode(
cChainParams.current.Nodes.find((a) => a.url === evt.target.value)
);
};

// Hook up the 'translation' select UI
document.getElementById('translation').onchange = function (evt) {
setTranslation(evt.target.value);
Expand Down

0 comments on commit 1cda0e4

Please sign in to comment.