Skip to content

fix(truapi): stop dropping dotNS pending claims after reservationDuration - #1419

Open
peetzweg wants to merge 1 commit into
mainfrom
fix/dotns-pending-claims-never-lapse
Open

peetzweg wants to merge 1 commit into
mainfrom
fix/dotns-pending-claims-never-lapse

Conversation

@peetzweg

Copy link
Copy Markdown
Member

Fixes https://github.com/paritytech/platform-bugs/issues/39: lite usernames stop resolving 7 days after onboarding.

Why: pending_claim_labels drops claims older than reservationDuration, mirroring the controller's old expiry. dotNS has since removed that expiry: pending claims never lapse and settle at any age (paritytech/dotns#324). Nothing settles them for users, so every unsettled lite name drops out of resolution after a week. It took out 17 of 26 DIM2 bots on paseo-next-v2 on 12 Oct (https://github.com/paritytech/jollity-next/issues/697).

How: remove the age filter and the reservationDuration / Timestamp.Now reads that only fed it. The resolution path is otherwise unchanged.

This is the lapse fix from #1282 on its own. The legacy undotted-claim fallback stays there.

…tion

pending_claim_labels filtered out claims with mintedAt + reservationDuration
< now, mirroring the controller's old expiry. dotNS removed that expiry
(expirePendingClaim is gone and _settlePending settles a claim of any age),
so the filter made every unsettled lite username unresolvable 7 days after
minting. Drop the filter and its reservationDuration and Timestamp.Now reads.

Fixes paritytech/platform-bugs#39
@peetzweg
peetzweg requested a review from a team October 14, 2026 15:06
@github-actions github-actions Bot added the rust Pull requests that update rust code label Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Bundle size report

Compared with main at 7472b77.

Raw Gzip Brotli
truapi-host 7.88 MiB (-1.7 KiB) 5.66 MiB (-750 B) 5.38 MiB (-478 B)
truapi-provider 4.03 MiB 1.27 MiB 960.1 KiB
truapi 6.29 MiB 889.7 KiB 728.6 KiB
Total 18.20 MiB (-1.7 KiB) 7.80 MiB (-750 B) 7.03 MiB (-478 B)

WebAssembly modules

Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.77 MiB (-1.7 KiB, -0.1%) 988.2 KiB (-746 B, -0.1%) 744.3 KiB (-482 B, -0.1%)
truapi-host/wasm/web/truapi_verifiable_bg.wasm 4.89 MiB 4.64 MiB 4.61 MiB
truapi-provider/truapi_provider_bg.wasm 3.99 MiB 1.26 MiB 952.4 KiB
Changed files (1)
Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.77 MiB (-1.7 KiB, -0.1%) 988.2 KiB (-746 B, -0.1%) 744.3 KiB (-482 B, -0.1%)

Commit: 46bcf09

@github-actions

Copy link
Copy Markdown
Contributor

CI Status: 24 required jobs green, 21 passed and 3 skipped by path filter.

All job results
job result
android-bindings success
bundle-size success
changes success
changeset-guard success
cli-package success
codegen success
e2e skipped
explorer success
headless-install success
host-android-bindings success
host-android-detekt success
host-wasm success
ios-bindings success
ios-swift success
licenses success
playground success
provider-android-bindings skipped
release-guard success
rust success
ts-client success
ts-debugger success
ts-host success
wasm-provider success
workflow-lint skipped

Signing credentials: failure as of 2026-10-14, a release may fail

Commit 46bcf094 · run log

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant