Skip to content

Error messages for invalid address #21741

@ghost

Description

Can we add more information in error messages for invalid address especially the errors mentioned in PR: #20832

Example:

Change

error_str = "Invalid prefix for Bech32 address";

To

error_str = "Invalid prefix for Bech32 address. Valid Bech32 address starts with `bc1` (mainnet) or `tb1` (testnet)";

Context: bitcoin-core/gui#280 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions