1.0.0-beta.2 (2018-06-08)
Breaking Changes
- During transaction preparation, there is now a maximum fee. Also, when a transaction is signed, its fee is checked and an error is thrown if the fee exceeds the maximum. The default
maxFeeXRP
is'2'
(2 XRP). Override this value in the RippleAPI constructor. - Attempting to prepare a transaction with an exact
fee
higher thanmaxFeeXRP
causes aValidationError
to be thrown. - Attempting to sign a transaction with a fee higher than
maxFeeXRP
causes aValidationError
to be thrown. - The value returned by
getFee()
is capped atmaxFeeXRP
.
Other Changes
- In Transaction Instructions, the
maxFee
parameter is deprecated. Use themaxFeeXRP
parameter in the RippleAPI constructor.
Overview of new fee limit
Most users of ripple-lib do not need to make any code changes to accommodate the new soft limit on fees. The limit is designed to protect against the most severe cases where an unintentionally high fee may be used.
- When having ripple-lib provide the fee with a
prepare*
method, a maximum fee ofmaxFeeXRP
(default 2 XRP) applies. You can prepare more economical transactions by setting a lowermaxFeeXRP
, or support high-priority transactions by setting a highermaxFeeXRP
in the RippleAPI constructor. - When using
sign
with a Fee higher thanmaxFeeXRP
, aValidationError
is thrown.
If you have any questions or concerns, please open an issue on GitHub.