Skip to content

Commit 690e999

Browse files
committed
Merge #841: [0.18 backport] Remove the min(max( construction for the ct_exponent argument
35c83bd Remove the min(max( construction for the ct_exponent argument (Steven Roose) Pull request description: Backport of #840. @dgpv Could you review again? Tree-SHA512: e212bc04e314bfd8a8e7b7c9c3d5620ad1b6f603706cc038136a655ab729f49c3430f70b0a9baa2d04a2e0bdc9e0aaced413d3cb0d4a424e386b50322b958dc2
2 parents 84e74dc + 35c83bd commit 690e999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ bool GenerateRangeproof(std::vector<unsigned char>& rangeproof, const std::vecto
180180
memcpy(asset_message+32, asset_blindptrs[asset_blindptrs.size()-1], 32);
181181

182182
// Sign rangeproof
183-
int ct_exponent = std::min(std::max((int)gArgs.GetArg("-ct_exponent", 0), -1), 18);
183+
int ct_exponent = (int)gArgs.GetArg("-ct_exponent", 0);
184184
int ct_bits = (int)gArgs.GetArg("-ct_bits", 52);
185185
// If min_value is 0, scriptPubKey must be unspendable
186186
uint64_t min_value = scriptPubKey.IsUnspendable() ? 0 : 1;

0 commit comments

Comments
 (0)