ZcashFoundation / zebra

Zcash - Financial Privacy in Rust 🦓
https://zfnd.org/zebra/
Apache License 2.0
412 stars 106 forks source link

feature: Specify why a transaction did not pass consensus validation #8961

Open mpguerra opened 1 month ago

mpguerra commented 1 month ago

Motivation

It would be useful to understand why exactly a transaction might not pass consensus validation.

It can be confusing to users to not know this: https://discord.com/channels/809218587167293450/809251029673312267/1298396993273597992

Specifications

Zebra should expose the underlying reason to the user in the logs: https://github.com/ZcashFoundation/zebra/blob/5376023c0945bfd471f9110442764e94ab4a301d/zebra-consensus/src/error.rs#L58

Complex Code or Requirements

No response

Testing

No response

Related Work

No response