diff --git a/src/server/index.ts b/src/server/index.ts index 8686aa63c..0db3b366b 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -65,6 +65,7 @@ export const initServer = async () => { // Start the server with middleware. const server: FastifyInstance = fastify({ + maxParamLength: 200, connectionTimeout: SERVER_CONNECTION_TIMEOUT, disableRequestLogging: true, trustProxy, diff --git a/src/server/schemas/wallet/index.ts b/src/server/schemas/wallet/index.ts index cd2c4d024..c4119fa61 100644 --- a/src/server/schemas/wallet/index.ts +++ b/src/server/schemas/wallet/index.ts @@ -12,6 +12,7 @@ export const walletHeaderSchema = Type.Object({ }, "x-idempotency-key": Type.Optional( Type.String({ + maxLength: 200, description: `Transactions submitted with the same idempotency key will be de-duplicated. Only the last ${env.TRANSACTION_HISTORY_COUNT} transactions are compared.`, }), ),