Set RangeProofWidth 43
MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -92,7 +92,10 @@ namespace WalletWasabi.Helpers
"/Satoshi:0.16.0/",
};
- public static readonly int RangeProofWidth = (int)Math.Log2(MaximumNumberOfSatoshis);
+ /// <summary>
+ /// This limits the max amount to 44 000.
+ /// </summary>
+ public static readonly int RangeProofWidth = 42;
public static Money MinimumCredentailAmount = Money.Satoshis(10_000);

MODIFY
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
@@ -47,6 +47,9 @@ namespace WalletWasabi.WabiSabi.Backend
[JsonConverter(typeof(MoneyBtcJsonConverter))]
public Money MinRegistrableAmount { get; set; } = Money.Coins(0.00005m);
+ /// <summary>
+ /// Constants.RangeProofWidth limits this to 44000, careful!
+ /// </summary>
[DefaultValueMoneyBtc("44000")]
[JsonProperty(PropertyName = "MaxRegistrableAmount", DefaultValueHandling = DefaultValueHandling.Populate)]
[JsonConverter(typeof(MoneyBtcJsonConverter))]

Set RangeProofWidth 43