Skip to content

platform-wallet: check Platform ports against Core's IsBadPort before building a version-3 ProUpServTx #5503

Closed

Description

@shumkov

Problem

When rs-platform-wallet converts a legacy evonode's service address into a version-3 ProUpServTx (extended addresses, added for Core v24 in #5408), it does not check the Platform ports against Dash Core's port rules. Core v24 checks every address in the v3 address map with IsBadPort (ports ≤ 1023 except 443 for Platform HTTPS, plus a fixed list of well-known ports) and refuses a bad one with TX_BAD_SPECIAL.

Result: the wallet builds and broadcasts a transaction Core will never accept. Peers do not ban for this rejection, but the transaction never confirms and its inputs stay reserved until the broadcast TTL expires, with no error the user can act on.

Proposal

Apply Core's IsBadPort rule (for the Core P2P, Platform P2P and Platform HTTPS entries) before building the payload, and return a typed build error naming the offending port. Add tests with Core's refused ports and the 443 exception.

Activity

  1. added this to the v5.1.0 milestone on Oct 20, 2026
  2. added a commit that references this issue on Oct 28, 2026
    9c0a693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions