Skip to content
Open
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: 4 additions & 0 deletions src/modules/chains/chains.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ export class ChainsService
this.rpcManagerService.executeRequest(chainId, (client) => {
return client.debug.traceCallSupported;
}),
// This is not used as part of health check but we're fetching this value during node intialization for a warm up
this.rpcManagerService.executeRequest(chainId, (client) => {
return client.transaction.sendTransactionSyncSupported;
}),
]);

let state: HealthCheckState;
Expand Down
3 changes: 3 additions & 0 deletions src/modules/chains/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export interface ChainClientExtended {
hash: Hex,
): Promise<ChainClientTraceTransactionCallType | undefined>;
};
transaction: {
sendTransactionSyncSupported: Promise<boolean>;
};
debug: {
traceCallSupported: Promise<boolean>;
traceCall(
Expand Down
2 changes: 2 additions & 0 deletions src/modules/chains/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
addressSchema,
bigIntLikeSchema,
booleanSchema,
etherSchema,
hexSchema,
intLikeSchema,
Expand Down Expand Up @@ -90,6 +91,7 @@ const chainConfigSchemaBase = z.object({
})
.default({}),
isTestChain: z.boolean().default(false),
isLowBlockTimeChain: booleanSchema.default(false),
contracts: chainConfigContractsSchema.default({}),
price: chainConfigPriceSchema,
paymentTokens: z.array(chainConfigPaymentTokenSchema).nonempty(),
Expand Down
5 changes: 5 additions & 0 deletions src/modules/executor/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ export const BLOCK_GAS_LIMIT_EXCEEDS_ERROR_MESSAGES = [
"exceeds block gas limit",
"block gas limit exceeds",
];

export const TRANSACTION_EXECUTION_SYNC_ERROR_MESSAGES = [
"The transaction was added to the mempool but wasn't processed",
"Invalid transaction",
];
Loading