Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet-prod sync #5134

Merged
merged 3 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ assignees: ''
---

## Problem
_What problem are we solving?_
_What is the problem or opportunity?_

## Impact
_Why does this matter? Who does it impact? How much does it impact them? What is the urgency?_
_Why is it important? Who requested it? Who does it impact? What data do we have to suggest this is a problem? Is there specific timelines that increase urgency?_

## Proposed Solution
_[OPTIONAL] Thoughts on solution design. We could do <insert idea> to solve this problem._
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/xERC20.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name: New xERC20
about: This is for whitelisting a new xERC20.
title: "[TOKEN] [Mainnet/Testnet] xERC20 Whitelisting"
labels: "xERC20 🪙"
assignees: ""
labels: "xERC20 \U0001FA99"
assignees: ''

---

## Token Details
Expand Down
4 changes: 2 additions & 2 deletions ops/testnet/prod/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ module "lighthouse_process_from_root_cron" {
stage = var.stage
container_env_vars = merge(local.lighthouse_env_vars, { LIGHTHOUSE_SERVICE = "process" })
schedule_expression = "rate(5 minutes)"
memory_size = 512
memory_size = 1536
}


Expand All @@ -388,7 +388,7 @@ module "lighthouse_sendoutboundroot_cron" {
stage = var.stage
container_env_vars = merge(local.lighthouse_env_vars, { LIGHTHOUSE_SERVICE = "sendoutboundroot" })
schedule_expression = "rate(30 minutes)"
memory_size = 512
memory_size = 2048
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export const makeProcessFromRoot = async (config: NxtpLighthouseConfig, chainDat
console.error("Error starting processor. Sad! :(", e);
} finally {
await closeDatabase();
process.exit();

context.logger.info("Process from root complete!!!", requestContext, methodContext, {
chains: [...Object.keys(context.config.chains)],
});
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export const makePropagate = async (config: NxtpLighthouseConfig, chainData: Map
} catch (e: unknown) {
console.error("Error starting Propagate task. Sad! :(", e);
} finally {
process.exit();
context.logger.info("Propagate task complete!", requestContext, methodContext, {
chains: [...Object.keys(context.config.chains)],
});
}
};
4 changes: 3 additions & 1 deletion packages/agents/lighthouse/src/tasks/prover/prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { acquireLock, prefetch, releaseLock } from "./operations/publisher";
const context: ProverContext = {} as any;
export const getContext = () => context;
export const makeProverPublisher = async (config: NxtpLighthouseConfig, chainData: Map<string, ChainData>) => {
const { requestContext, methodContext } = createLoggingContext(makeProverPublisher.name);
try {
await makeProver(config, chainData);
if (!(await acquireLock())) throw new Error("Could not acquire lock");
Expand All @@ -30,7 +31,8 @@ export const makeProverPublisher = async (config: NxtpLighthouseConfig, chainDat
console.error("Error starting Prover-Publisher. Sad! :(", e);
} finally {
await closeDatabase();
process.exit();

context.logger.info("Prover complete!!!", requestContext, methodContext, {});
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export const makeSendOutboundRoot = async (config: NxtpLighthouseConfig, chainDa
} catch (e: unknown) {
console.error("Error starting SendOutboundRoot task. Sad! :(", e);
} finally {
process.exit();
context.logger.info("SendOutboundRoot task complete!!!", requestContext, methodContext, {
chains: [...Object.keys(context.config.chains)],
});
}
};