From 32234dfa686c6d4c093bb81d8e8fc5eaebefb52f Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 11 Jan 2021 18:35:32 -0500 Subject: [PATCH] Call CacheUnsignedTxPieces in PSBT constructor --- src/psbt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/psbt.cpp b/src/psbt.cpp index ad4346d9ba..9931c9ef10 100644 --- a/src/psbt.cpp +++ b/src/psbt.cpp @@ -12,6 +12,7 @@ PartiallySignedTransaction::PartiallySignedTransaction(const CMutableTransaction { inputs.resize(tx.vin.size(), PSBTInput(GetVersion())); outputs.resize(tx.vout.size(), PSBTOutput(GetVersion())); + CacheUnsignedTxPieces(); } bool PartiallySignedTransaction::IsNull() const