Skip to content

What are strategies to handle the error return of max_weigh_to_satisfy ? #695

Open
@oleonardolima

Description

@oleonardolima

Maybe upstream could add a field to the Params structure which would refuse to parse un-satiable descriptors. Could you file an issue in rust-miniscript asking for strategies to handle the error return of max_weight_to_satisfy?

Alternately you can just use unwrap_or(usize::MAX) or something silly.

Originally posted by @apoelstra in bitcoindevkit/bdk#1448 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions