Alain Brenzikofer
a3fb63ff06
fix review findings
2026-09-10 14:42:19 +02:00
Alain Brenzikofer
ccdb4c88f4
fix resolver boundary: status before body, cover /v2, drop dead field
...
httpGet read the response body before checking the status, so an oversized
error page surfaced as a transient "response too large" instead of the
authoritative status. Reverting it to its previous shape restores that and
removes the status test both callers had been re-deriving.
registration() had no tests at all, though it is the endpoint SMP v22
consumes. RegistrationV2Tests covers the three answer shapes, the error
paths and the exact key set of each, which is the wire contract.
auctionUntil was always None with no consumer. The spec claimed a reason
word travels unchanged; a resolver can only send a word it has, and SNRC's
registry records a number.
2026-09-10 14:16:59 +02:00
Alain Brenzikofer
288978a181
derive NameRegistration JSON the same way on every build
...
sumTypeJSON switches to the _owsf form on swift builds, but this JSON is
the RNAME payload and the resolver's HTTP contract, so a swift client and
a Linux relay would disagree on every field. taggedObjectJSON is what it
already resolves to everywhere else.
The label modifier keeps the reservedReason_ collision escape out of the
API, as AgentWorkersDetails does: both arms now say reservedReason.
2026-09-10 14:05:09 +02:00
Alain Brenzikofer
50fc0466e0
fix stale docs
2026-09-10 13:14:13 +02:00
Alain Brenzikofer
4645a7e587
implement full type change and introduce resolver endpoint versioning
2026-09-10 12:22:07 +02:00
Alain Brenzikofer
f171ff2fbf
revert drive-by refactoring
2026-09-10 11:25:28 +02:00
Alain Brenzikofer
5da77572c9
NameQuery simplification
2026-09-10 09:51:20 +02:00
Alain Brenzikofer
9db84e1f28
fix more robustly
2026-09-09 12:19:09 +02:00
Alain Brenzikofer
be35dbc9cb
fix reverse compatibility with .testing mainnet
2026-09-09 11:50:21 +02:00
Alain Brenzikofer
e03e4bd8f2
Merge branch 'ab/snrc-resolver-expiry-and-availability' into ab/snrc-resolver-SMP-NAVL
2026-09-09 09:22:06 +02:00
Alain Brenzikofer
dc2c918aa1
Merge branch 'ab/resolver-labelhash-query' into ab/snrc-resolver-expiry-and-availability
2026-09-09 09:21:43 +02:00
Alain Brenzikofer
993cc3df5e
Merge remote-tracking branch 'origin/master' into ab/snrc-resolver-expiry-and-availability
2026-09-09 09:16:04 +02:00
Alain Brenzikofer
aaed545fed
Merge remote-tracking branch 'origin/master' into ab/resolver-labelhash-query
2026-09-09 09:15:11 +02:00
Alain Brenzikofer
5ccbca9239
align resolver with contract changes for names v2
2026-09-09 09:07:26 +02:00
Alain Brenzikofer
7636c8ec20
Merge remote-tracking branch 'origin/master' into ab/snrc-resolver-SMP-NAVL
2026-09-09 08:38:40 +02:00
Alain Brenzikofer
f229e61585
trim diff
2026-09-08 17:51:10 +02:00
Alain Brenzikofer
8b706331e2
fix adversarial review findings
2026-09-08 17:04:20 +02:00
Alain Brenzikofer
c0bf6203e2
align implementation with latest type changes to test against client
2026-09-08 09:36:00 +02:00
Alain Brenzikofer
1a74598231
separate labelhash and plaintext names cleanly
2026-09-08 09:16:14 +02:00
Alain Brenzikofer
82ca4af382
claude answering ep review. to be continued...
2026-09-08 08:44:35 +02:00
Alain Brenzikofer
1dabe1dc52
rentPrices map
2026-09-08 08:28:33 +02:00
Alain Brenzikofer
1e3d6fa09b
next iteration on types only
2026-09-07 18:19:34 +02:00
Alain Brenzikofer
e4fab46eb9
protocol types refactoring
2026-09-07 16:17:22 +02:00
brenzi and Evgeny
20ba720224
Update src/Simplex/Messaging/Protocol.hs
...
Co-authored-by: Evgeny <evgeny@poberezkin.com >
2026-09-07 14:21:17 +02:00
brenzi and Evgeny
13f8cce682
Update src/Simplex/Messaging/Protocol.hs
...
Co-authored-by: Evgeny <evgeny@poberezkin.com >
2026-09-07 14:21:07 +02:00
brenzi and Evgeny
1e5ddca661
Update src/Simplex/Messaging/Protocol.hs
...
Co-authored-by: Evgeny <evgeny@poberezkin.com >
2026-09-07 14:20:57 +02:00
brenzi and Evgeny
80765045b2
Update src/Simplex/Messaging/Protocol.hs
...
Co-authored-by: Evgeny <evgeny@poberezkin.com >
2026-09-07 14:20:46 +02:00
brenzi and Evgeny
b8cc0196ca
Update src/Simplex/Messaging/Server/Names.hs
...
Co-authored-by: Evgeny <evgeny@poberezkin.com >
2026-09-07 14:20:26 +02:00
Alain Brenzikofer
08432383cd
doc fixes
2026-09-07 11:11:11 +02:00
Alain Brenzikofer
c2c3bbc578
revert NAVL command and wrap it all into RSLV
2026-09-07 11:01:07 +02:00
Alain Brenzikofer
e6dc6c8846
eth_call guard and cache constants
2026-09-07 08:09:43 +02:00
Alain Brenzikofer
99adfe9af0
adapt house style
2026-09-06 19:00:44 +02:00
Alain Brenzikofer
3b4a7f2295
next iteration fixes
2026-09-06 18:47:23 +02:00
Alain Brenzikofer
5c480277d6
adversarial review (against simplex-chat) fix
2026-09-06 18:35:02 +02:00
Alain Brenzikofer
c99cc61b69
add catch all for furture variants
2026-09-06 12:43:30 +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
7e91f2e582
map resolver 410 to NAME NOT_FOUND (a lapsed name is an answer, not a failure)
2026-09-04 09:09:31 +02:00
Alain Brenzikofer
e4e3d0dc7c
simplify language
2026-09-04 08:51:12 +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
bd4b07ab79
tiny test addition
2026-09-03 17:53:47 +02:00