Commit Graph
23 Commits
Author SHA1 Message Date
Alain Brenzikofer ac442e4064 docs sweep 2026-09-10 16:28:38 +02:00
Alain Brenzikofer 2b2d2d4e0c fix regressions found reviewing the last two commits
resolveNameMsg read the version off thParams', which on the PFWD path is
  the proxy's session, not the client's. It takes the version as an argument
  now, so each call site passes its own — the forwarded one uses fwdVersion.

  reservedReasonOf matched the reason words before capping, so "internal
  review" became NRRUnknown "internal", which encodes back as NRRInternal.
  Capping precedes the match, so what is kept encodes to what it decoded.

  Four agent tests still pinned NAME NOT_FOUND from a 404 stub, and two spec
  statements still described the old mapping. A registrar that does not
  record labels cannot answer a hashed query, which the resolver README now
  says.
2026-09-10 15:33:16 +02:00
Alain Brenzikofer ef97b86ea6 resolver errors say what went wrong, not "no such name"
/v2/resolve answers 200, 400 or 502, and an unregistered name is
  NRAvailable, so no status means "not registered". Mapping 400/404/410 to
  NOT_FOUND made a misconfigured relay deny every name, and hid a relay
  upgraded ahead of its resolver. All three now surface as RESOLVER.

  rslvNotFound would have gone dead, so it counts what its name says: an
  availability answer the encoder downgrades for a session below v22. The
  wire is unchanged.

  A hashed query the registrar cannot name is refused with 502 rather than
  answered with a record named "unknown", which the client rejects anyway.
  NRRUnknown is capped to 32 printable characters again, as the spec says.
  A registered name that is also reserved no longer offers a date it will
  never free up on. rentPrices is registrationPrices throughout, and
  yearPriceUSD is USDCents rather than a bare Int64.
2026-09-10 15:16:11 +02:00
Alain Brenzikofer a3fb63ff06 fix review findings 2026-09-10 14:42:19 +02:00
Alain Brenzikofer 50fc0466e0 fix stale docs 2026-09-10 13:14:13 +02:00
Alain Brenzikofer e6dc6c8846 eth_call guard and cache constants 2026-09-07 08:09:43 +02:00
Alain Brenzikofer 5c480277d6 adversarial review (against simplex-chat) fix 2026-09-06 18:35:02 +02:00
Alain Brenzikofer 45d314cfe2 docs shortening and other review fixes 2026-09-05 22:52:42 +02:00
Alain Brenzikofer 783f0aa4be more review fixes 2026-09-05 19:51:01 +02:00
Alain Brenzikofer 69cce33675 review fixes 2026-09-05 18:37:55 +02:00
Alain Brenzikofer e3f00b46f6 extend SMP protocol to support name availability queries with accurate and meaningful replies 2026-09-05 16:53:42 +02:00
sh c47aeddb18 resolver: reduce comments, remove REVIEW.html 2026-09-04 15:05:14 +00:00
sh bcc9b36e8f merge ab/resolver-labelhash-query
# Conflicts:
#	scripts/resolver/README.md
#	scripts/resolver/service/snrc-resolve.py
#	scripts/resolver/service/test_snrc_resolve.py
2026-09-04 14:52:37 +00:00
sh ad4077bf14 resolver: reduce comments 2026-09-04 14:49:07 +00:00
Alain Brenzikofer 17451a6578 split error into a machine-readable code and a human message 2026-09-04 09:09:43 +02:00
Alain Brenzikofer 2cfc6d3a76 simplify language 2026-09-04 08:46:10 +02:00
Alain Brenzikofer 41678c74bb compare block instead of wall clock 2026-09-04 08:42:54 +02:00
Alain Brenzikofer 9b2ff82cc7 report expiry and availability correctly 2026-09-04 08:42:48 +02:00
Alain Brenzikofer e670d9fa37 simplify language 2026-09-04 08:40:04 +02:00
Alain Brenzikofer a8cee354eb implement resolving 2LD names by labelhash 2026-09-03 17:23:47 +02:00
sh 2dff11a808 resolver: cleanup (#1817)
* resolver: cleanup

* resolver: update .testing registry address
2026-06-23 16:30:44 +01:00
brenziandsh 056314396d SNRC name resolver (#1795)
* add REST API to resolve SNRC

* fix unset fields

* support multi-TLD deployments

* update for mainnet tests

* haskell-friendly fieldnames

* add subname hint

* resolver: dockerize

* support multiple fallback links for splx contact and channels

* add test

* change url separator to semicolon

---------

Co-authored-by: sh <github.shum@liber.li>
2026-06-20 10:09:56 +01:00
sh 53bc0fe663 scripts: add docker-compose resolver setup (#1793) 2026-06-02 10:24:56 +01:00