Skip to content

Commit

Permalink
Merge pull request #67 from eco-stake/exclude-chain-registry-template
Browse files Browse the repository at this point in the history
Exclude Chain Registry template directory
  • Loading branch information
tombeynon committed Jun 25, 2023
2 parents 4239687 + a1cc7a1 commit 91cc2b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chainWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ async function queueChainCheck(client, registry, monitor) {
(async () => {
const client = await redisClient();

const chainRepo = Repository(client, chainUrl, chainBranch, { path: chainPath, require: 'chain.json' })
const validatorRepo = Repository(client, validatorUrl, validatorBranch, { exclude: [], require: 'chains.json', storeMeta: async (name, allData) => {
const chainRepo = Repository(client, chainUrl, chainBranch, { path: chainPath, exclude: ['_template'], require: 'chain.json' })
const validatorRepo = Repository(client, validatorUrl, validatorBranch, { require: 'chains.json', storeMeta: async (name, allData) => {
await client.json.set([name, 'addresses'].join(':'), '$', allData.reduce((sum, validator) => {
for(const chain of validator.chains.chains){
sum[chain.address] = validator.path
Expand Down Expand Up @@ -80,4 +80,4 @@ async function queueChainCheck(client, registry, monitor) {
if (chainRefreshSeconds > 0) {
queueChainCheck(client, chainRegistry, chainMonitor)
}
})();
})();

0 comments on commit 91cc2b8

Please sign in to comment.