Page MenuHomePhabricator

GUI: Write PSBTs to file with binary mode
ClosedPublic

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

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC2867b3ddf04d: GUI: Write PSBTs to file with binary mode
Summary

PSBT files should be opened in binary mode as on windows, all newlines are turned into CRLF which produces invalid PSBTs.

This is a partial backport of core-gui#188

The change to psbtoperationsdialog.cpp is not applicable due to missing backports (core#18027)

Test Plan

Made sure that I can still save and load PSBT file in bitcoin-qt on Linux. I don't have a windows computer to compile and test this, but the change is trivial enough that it should not be necessary.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sep 14 2022, 09:29
PiRK edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 15 2022, 09:44
PiRK edited the summary of this revision. (Show Details)

backport the applicable part without psbtoperationsdialog

This revision is now accepted and ready to land.Sep 20 2022, 15:27