MCPcopy Create free account
hub / github.com/ElementsProject/elements / CombinePSBTs

Function CombinePSBTs

src/psbt.cpp:767–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767TransactionError CombinePSBTs(PartiallySignedTransaction& out, const std::vector<PartiallySignedTransaction>& psbtxs)
768{
769 out = psbtxs[0]; // Copy the first one
770
771 // Merge
772 for (auto it = std::next(psbtxs.begin()); it != psbtxs.end(); ++it) {
773 if (!out.Merge(*it)) {
774 return TransactionError::PSBT_MISMATCH;
775 }
776 }
777 return TransactionError::OK;
778}
779
780std::string PSBTRoleName(PSBTRole role) {
781 switch (role) {

Callers 2

FUZZ_TARGET_INITFunction · 0.85
combinepsbtFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
MergeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68