HomePhabricator

Remove op== on PSBTs; check compatibility in Merge

Description

Remove op== on PSBTs; check compatibility in Merge

Summary:

Remove the op== on PartiallySignedTransaction, which only checks that
the CTransactions are equal. Instead, check this directly in Merge, and
return false if the CTransactions are not equal (so the PSBTs cannot be
merged.)

Partial backport of core PR14978:
https://github.com/bitcoin/bitcoin/pull/14978/commits/78b9893d020e8b1351565f1adbf591cb32f6dc90

Test Plan:

ninja all check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5738

Details

Provenance
Glenn Willen <gwillen@nerdnet.org>Authored on Jan 30 2019, 06:51
FabienCommitted on Apr 16 2020, 13:54
FabienPushed on Apr 16 2020, 13:54
Reviewer
Restricted Project
Differential Revision
D5738: Remove op== on PSBTs; check compatibility in Merge
Parents
rABC8eef3ca0f3c7: Split DecodePSBT into Base64 and Raw versions
Branches
Unknown
Tags
Unknown