Merge pull request #1959 from RoboSats/remove-local-coordinator

Remove local coordinator
This commit is contained in:
KoalaSat
2025-05-23 11:26:14 +00:00
committed by GitHub
2 changed files with 3 additions and 32 deletions

View File

@ -20,14 +20,9 @@ export class Federation {
constructor(origin: Origin, settings: Settings, hostUrl: string) {
const coordinators = Object.entries(defaultFederation).reduce(
(acc: Record<string, Coordinator>, [key, value]: [string, object]) => {
if (getHost() !== '127.0.0.1:8000' && key === 'local') {
// Do not add `Local Dev` unless it is running on localhost
return acc;
} else {
acc[key] = new Coordinator(value, origin, settings, hostUrl);
acc[key].federated = true;
return acc;
}
acc[key] = new Coordinator(value, origin, settings, hostUrl);
acc[key].federated = true;
return acc;
},
{},
);

View File

@ -238,29 +238,5 @@
"mainnetNodesPubkeys": ["03ab3468f06d3aac93992ef7ae79bce083e18617dc760f09ef687d7bca89667a15"],
"testnetNodesPubkeys": [],
"federated": true
},
"local": {
"longAlias": "Local Dev",
"shortAlias": "local",
"description": "This coordinator will only be available if you run a RoboSats coordinator on your own machine.",
"motto": "Buidl",
"color": "#000000",
"testnet": {
"onion": "",
"clearnet": "http://localhost:8000"
},
"badges": {
"donatesToDevFund": 0
},
"mainnet": {
"onion": "",
"clearnet": ""
},
"policies": {
"Development Policy": "Don't look around, just buidl"
},
"mainnetNodesPubkeys": ["..."],
"testnetNodesPubkeys": ["..."],
"federated": true
}
}