mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 16:53:16 +00:00
Merge pull request #1959 from RoboSats/remove-local-coordinator
Remove local coordinator
This commit is contained in:
@ -20,14 +20,9 @@ export class Federation {
|
|||||||
constructor(origin: Origin, settings: Settings, hostUrl: string) {
|
constructor(origin: Origin, settings: Settings, hostUrl: string) {
|
||||||
const coordinators = Object.entries(defaultFederation).reduce(
|
const coordinators = Object.entries(defaultFederation).reduce(
|
||||||
(acc: Record<string, Coordinator>, [key, value]: [string, object]) => {
|
(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] = new Coordinator(value, origin, settings, hostUrl);
|
||||||
acc[key].federated = true;
|
acc[key].federated = true;
|
||||||
return acc;
|
return acc;
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
|
@ -238,29 +238,5 @@
|
|||||||
"mainnetNodesPubkeys": ["03ab3468f06d3aac93992ef7ae79bce083e18617dc760f09ef687d7bca89667a15"],
|
"mainnetNodesPubkeys": ["03ab3468f06d3aac93992ef7ae79bce083e18617dc760f09ef687d7bca89667a15"],
|
||||||
"testnetNodesPubkeys": [],
|
"testnetNodesPubkeys": [],
|
||||||
"federated": true
|
"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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user