From 34db2aa734dccc9fa634f3b07395dfb7931cbea5 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 1 Mar 2017 14:30:52 -0800 Subject: [PATCH] BlindOuputs succeeds if no blinding known/attempted --- src/blind.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blind.cpp b/src/blind.cpp index f43b51705b..0f9ebe7c75 100644 --- a/src/blind.cpp +++ b/src/blind.cpp @@ -261,9 +261,9 @@ bool BlindOutputs(std::vector& input_blinding_factors, const std::vect } } - // secp throws a fit if total isn't larger than number of inputs - if (nBlindsOut < 1) { - return false; + // No known blinding means the blinding attempt is vacuously successful + if (nBlindsOut == 0) { + return true; } // Check blinding(even if nothing has been done)