Skip to content

bug: Error on deserialization old cbtx (mainnet) #673

Description

@owl352

Certain transactions cannot be decoded from bytes using rust-dashcore. If I understand correctly, this is because transactions prior to dip-002 may have an invalid extraPayload type compared to "modern" transactions.

Since the transaction type in rust-dashcore is defined as an enum, we cannot decode a value that does not correspond to a value in the enum, which results in a transaction decoding error.

problem transaction hash: 53fa8159168128ed8c0d31c2c2b6466f32ca27a69ea6fb114c1655bdfc734ac6
problem transaction on cryptoid: https://chainz.cryptoid.info/dash/tx.dws?5999189.htm

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