From b08fcb1f9afd792c44f25edee23353d9d467a80d Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 18 Apr 2019 10:52:22 -0400 Subject: [PATCH] RawFillBlinds needs to push blank pubkeys if output it already blinded --- src/blind.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blind.cpp b/src/blind.cpp index 722d2daf73..34f53faf68 100644 --- a/src/blind.cpp +++ b/src/blind.cpp @@ -575,10 +575,13 @@ void RawFillBlinds(CMutableTransaction& tx, std::vector& output_value_b } else { output_pubkeys.push_back(CPubKey()); } + } else { + output_pubkeys.push_back(CPubKey()); } // No way to unblind anything, just fill out output_value_blinds.push_back(uint256()); output_asset_blinds.push_back(uint256()); } + assert(output_pubkeys.size() == tx.vout.size()); // We cannot unwind issuance inputs because there is no nonce placeholder for pubkeys }