Quick fix for incorrect fee issue
MODIFY
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
@@ -105,9 +105,16 @@ public record ConstructionState : MultipartyTransactionState
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.SizeLimitExceeded, $"Transaction size is {EstimatedVsize} bytes, which exceeds the limit of {Parameters.MaxTransactionSize} bytes.");
}
- if (EffectiveFeeRate < Parameters.MiningFeeRate)
+ var minToleratedMiningFeeRate = new FeeRate(0.95m * Parameters.MiningFeeRate.SatoshiPerByte);
+ if (EffectiveFeeRate < minToleratedMiningFeeRate)
{
- throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.InsufficientFees, $"Effective fee rate {EffectiveFeeRate} is less than required {Parameters.MiningFeeRate}.");
+ var state = new SigningState(Parameters, Events);
+ var tx = state.CreateUnsignedTransaction();
+ var txHex = tx.ToHex();
+
+ throw new WabiSabiProtocolException(
+ WabiSabiProtocolErrorCode.InsufficientFees,
+ $"Effective fee rate {EffectiveFeeRate} is less than required {minToleratedMiningFeeRate}. RawTx: {txHex}");
}
return new SigningState(Parameters, Events);

Quick fix for incorrect fee issue (#10095)