Page MenuHomePhabricator

Improve TransactionErrorString messages.
AbandonedPublic

Authored by PiRK on Sep 14 2022, 09:01.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

This is a backport of core#18027 [1/4]
https://github.com/bitcoin/bitcoin/pull/18027/commits/9e7b23b73387600d175aff8bd5e6624dd51f86e7

Note: the test was intentionnaly skipped in D8104. It does not work with Bitcoin ABC (error message: TX decode failed CDataStream::read(): end of data: iostream error (-22)

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Sep 14 2022, 09:01

And what about the other error messages ?

I can try to figure out a few tests to trigger these errors, but it is going to take some time getting more familiar with PSBTs.

PiRK planned changes to this revision.Sep 15 2022, 13:17

It's not PSBT only, it's a generic transaction error. Also you need to be familiar with code you are backporting changes into.

I'm abandoning this stack because it is a minor dependency for D11974, and it is easy to work around the dependency. It turns out to be more work than initially expected, and the impact is minor.