Skip to content

Commit b9a13c8

Browse files
committed
chore: support nip-11a
1 parent 9f56750 commit b9a13c8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
26,
1717
28,
1818
33,
19-
40,
20-
111
19+
40
20+
],
21+
"supportedNipExtensions": [
22+
"11a"
2123
],
2224
"main": "src/index.ts",
2325
"scripts": {

src/handlers/request-handlers/root-request-handler.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@ export const rootRequestHandler = (request: Request, response: Response, next: N
2323
pubkey,
2424
contact,
2525
supported_nips: packageJson.supportedNips,
26+
supported_nip_extensions: packageJson.supportedNipExtensions,
2627
software: packageJson.repository.url,
2728
version: packageJson.version,
2829
limitation: {
2930
max_message_length: settings.network.maxPayloadSize,
30-
max_subscriptions: settings.limits.client.subscription.maxSubscriptions,
31-
max_filters: settings.limits.client.subscription.maxFilters,
31+
max_subscriptions: settings.limits?.client?.subscription?.maxSubscriptions,
32+
max_filters: settings.limits?.client?.subscription?.maxFilters,
3233
max_limit: 5000,
3334
max_subid_length: 256,
3435
min_prefix: 4,
3536
max_event_tags: 2500,
3637
max_content_length: 102400,
37-
min_pow_difficulty: settings.limits.event.eventId.minLeadingZeroBits,
38+
min_pow_difficulty: settings.limits?.event?.eventId?.minLeadingZeroBits,
3839
auth_required: false,
39-
payment_required: settings.payments.enabled,
40+
payment_required: settings.payments?.enabled,
4041
},
4142
payments_url: paymentsUrl.toString(),
4243
fees: Object

0 commit comments

Comments
 (0)