Skip to content

Commit

Permalink
Update cluster key (#25)
Browse files Browse the repository at this point in the history
* Update SYNTHETIX_IPNS to use `cluster` key

* If follower is misconfigured - wipe config folder and reconfigure it
  • Loading branch information
noisekit authored Aug 25, 2023
1 parent d7f1bac commit 24d163a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const SYNTHETIX_IPNS = 'k51qzi5uqu5dj0vqsuc4wyyj93tpaurdfjtulpx0w45q8eqd7uay49zodimyh7';
export const SYNTHETIX_IPNS = 'k2k4r8k0exi9e16awbpoy3y7gzfg37no0yceoz1b4dmt8mcohkf9kz4a';

export const SYNTHETIX_NODE_APP_CONFIG = 'k2k4r8jhn5r54sf708bnlxun971q0pteab82iw98544sj1e0hi3hp9q6';
6 changes: 4 additions & 2 deletions src/main/follower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ export async function configureFollower({ log = logger.log } = {}) {
return;
}
try {
await fs.rm(path.join(IPFS_FOLLOW_PATH, 'synthetix'), { recursive: true, force: true });
log(await follower(`synthetix init "http://127.0.0.1:8080/ipns/${SYNTHETIX_IPNS}"`));
} catch (_error) {
// ignore
} catch (e) {
logger.error(e);
// whatever
}
}

0 comments on commit 24d163a

Please sign in to comment.