resolver: resolve .simplex names, on smp7 and then on the preset routers

Đang mở
#2,011 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@shumvgolove đang làm issue này rồi.

Từ ngày 3/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

.simplex is deployed on Ethereum mainnet (deployments.mainnet.simplex.json in simplex-chat/simplex-domains-app-v3, 475fe430). The current apps (v7.0.4 and v7.1.0-beta.10) already parse .simplex names, and so does every router since #1784. A resolver without the settings below answers every .simplex name 400 tldNotConfigured, because .simplex is unset in snrc-resolve.py (scripts/resolver/README.md, "Configuring addresses").

Apply the steps first to the resolver behind smp7.simplex.im, then to the resolvers behind the preset routers with the names role.

1. Resolver version

simplexmq master at 89c8ba9 (#1993) or later. The .simplex controller has a name policy, and its reservedNames call reverts. A resolver before #1993 reads reservations from the controller, so every .simplex lookup fails.

2. Settings

On the resolver service in scripts/resolver/docker-compose.yml:

SNRC_REGISTRY_SIMPLEX: "0xa7f6497be2f1aa41aa2db55aba8a6e0145dff0d2"
SNRC_REGISTRAR_SIMPLEX: "0x44052f7dc9c1cef20b0319a6b75288988dbb12a1"
SNRC_CONTROLLER_SIMPLEX: "0x8005011c6e966656cdb9a222e9a4792600a37219"

The controller address is the proxy (ETHRegistrarController in the deployment file), not SimplexControllerImpl.

3. Restart

docker compose up -d resolver. The resolver reads the name policy only at startup, so it is restarted again after any later setNamePolicy.

4. Checks

  • startup log line listening: name_policies=…simplex=0xf7054e2fb9ebfd49dd68caffdbe661c03a59b823
  • /health: registries.simplex is 0xa7f6497be2f1aa41aa2db55aba8a6e0145dff0d2
  • /v2/resolve/brenzi.simplex: type registered
  • /v2/resolve/simplex.simplex: type reserved, reservedReason internal
  • /v2/resolve/[<labelhash>].simplex of an unregistered label: type available, basePrice 5000, minLabelLength 6
  • an app on smp7 resolves a .simplex name that has a simplex.contact record; brenzi.simplex has none yet

Verified on 2026-11-03 with master at a0eec71 and the settings above, against mainnet:

  • the registry gives simplex to the registrar, and the registrar's baseNode is namehash("simplex")
  • the controller is a controller of the registrar; its namePolicy() is 0xf7054e2fb9ebfd49dd68caffdbe661c03a59b823 and its prices() is 0x3754fbcd143ab41204f7fa02d8c69ac86b5c0ee8
  • each check in step 4 except the app's answered as stated
Ngôn ngữ chính
Haskell
Star
865
Fork
125
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
64

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Đọc hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của simplex-chat/simplexmq

Tất cả issue của simplex-chat/simplexmq

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.