Skip to content

Commit 69a4393

Browse files
committed
Enable HMT for local ussage and move subgraph's postgres instance to v16
1 parent c91e39f commit 69a4393

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

docker-setup/docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ services:
7373

7474
graph-node-db:
7575
container_name: hp-dev-graph-node-db
76-
image: postgres:latest
76+
image: postgres:16
7777
restart: *default-restart
7878
logging:
7979
<<: *default-logging

packages/apps/job-launcher/server/src/modules/job/job.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class JobService {
147147
// DISABLE HMT
148148
if (
149149
requestType !== HCaptchaJobType.HCAPTCHA &&
150+
dto.chainId !== ChainId.LOCALHOST &&
150151
(dto.escrowFundToken === EscrowFundToken.HMT ||
151152
dto.paymentCurrency === PaymentCurrency.HMT)
152153
) {

packages/apps/job-launcher/server/src/modules/payment/payment.controller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ export class PaymentController {
452452
throw new ValidationError(ErrorPayment.InvalidChainId);
453453
}
454454

455+
if (chainId === ChainId.LOCALHOST) {
456+
return tokens;
457+
}
458+
455459
// Disable HMT
456460
const { [EscrowFundToken.HMT]: _omit, ...withoutHMT } = tokens;
457461

0 commit comments

Comments
 (0)