diff options
| author | Andrew Chow <[email protected]> | 2018-07-19 18:49:51 -0700 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-07-19 18:49:51 -0700 |
| commit | fad231ad41e12b7047deb64220942ca8cb8357bc (patch) | |
| tree | 3eb501f1bd6072264b017d82949e88c919663868 /src/script/sign.cpp | |
| parent | Check that PSBT keys are the correct length (diff) | |
| download | discoin-fad231ad41e12b7047deb64220942ca8cb8357bc.tar.xz discoin-fad231ad41e12b7047deb64220942ca8cb8357bc.zip | |
Fix merging of global unknown data in PSBTs
Actually merge the global unknown key-value pairs.
Add a test for merging unknown key-value pairs.
Diffstat (limited to 'src/script/sign.cpp')
| -rw-r--r-- | src/script/sign.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index f1ac1f411..bef7bda26 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -481,6 +481,7 @@ void PartiallySignedTransaction::Merge(const PartiallySignedTransaction& psbt) for (unsigned int i = 0; i < outputs.size(); ++i) { outputs[i].Merge(psbt.outputs[i]); } + unknown.insert(psbt.unknown.begin(), psbt.unknown.end()); } bool PartiallySignedTransaction::IsSane() const |