Skip to content

address_to_script_pubkey doesn't support regtest segwit prefix #148

Description

@bucko13

Trying to build a psbt that's spending to a segwit regtest address results in the following error:

'unknown type of address: bcrt1q26ezj5pth4ta44eku3vmpvnejmsrhkfusczl83xlts5nkzyu3heqdzfqxa',

presumably expanding the check here to something like:

    elif s[:4] in ("bc1q", "tb1q") or s[:6] == "bcrt1q":

is that all that would be needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions