Skip to content

v0.13.1 — relay 契约与 CLI 对齐:--to 别名 + 位置参数

Choose a tag to compare

@evolution301 evolution301 released this 09 Nov 09:53
· 8 commits to main since this release

[0.13.1] - 2026-11-09

Fixed — relay contract taught a flag the CLI did not accept (B17)

RELAY_CONTRACT (the text delivered to every relayed session) and the module
docstring said tower relay --to <target> -m "...", while the CLI only parsed a
positional target. A peer following the contract got unrecognized arguments: --to and never answered, so --await-receipt waits could hang for nothing.

  • The CLI now accepts both: tower relay <target> -m "…" (canonical) and
    tower relay --to <target> -m "…" (alias). A missing target is a clear exit-2.
  • The contract and docstring now teach the positional form (with --to named as
    an accepted alias), so either style a peer copies works.
  • Regression test covers both forms and the contract wording.