Skip to content

Imprecise error messages for pbaas validation #388

@Alrighttt

Description

@Alrighttt
verus revokeidentity trash7@
error code: -26
error message:
Unable to commit identity update transaction: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)
ERROR: CScriptCheck(): 99ef6a06f00100b538758d0c2c69052b0953ca739d36ef5f2bcb7cd32f87b2c2:0 VerifySignature failed: Script evaluated without error but finished with a false/empty top stack element
ERROR: AcceptToMemoryPool: ConnectInputs failed against MANDATORY but not STANDARD flags 8191258262846d3b2cf852376f686ccf0cee93fc8a928543dd3183cd5670340e

return eval->Error("Cannot revoke an identity with self as the recovery authority");

There are error messages like this one that will never be shown anywhere. The user only receives the generic messages above. I was only able to determine the issue by using breakpoints within a debugger.

I see users complaining about this if you search "revokeidentity" on the discord. I assume this is the case for other RPC methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions