SLP/ALP txs can have problems for many reasons, so we add burn_summary, which returns a human-readable string of exactly what went wrong.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC4118b7d412f7: [Chronik] Add `TokenTxEntry::burn_summary` for a nice human-readable burn…
cargo test -p bitcoinsuite-slp --lib test_burn_summary
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- chronik-slp-burn_summary
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 26191 Build 51954: Build Diff chronik-client-integration-tests · build-chronik Build 51953: arc lint + arc unit
Event Timeline
chronik/bitcoinsuite-slp/src/burn_summary.rs | ||
---|---|---|
16–20 | this looks like Python, not Rust; there's no ternary operator in Rust (not even a Pythonesque one) | |
25–33 | I'll see how this formats | |
31 | I think it's more readable this way; I could also just make it a big predicate | |
106 | Actually this would create an Unexpected burn: ; expected X... message |