mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
UT: Add helper for setting transfer rate.
This commit is contained in:
@@ -1046,6 +1046,9 @@ Transaction.prototype.send_max = function (send_max) {
|
||||
Transaction.prototype.transfer_rate = function (rate) {
|
||||
this.transaction.TransferRate = Number(rate);
|
||||
|
||||
if (this.transaction.TransferRate < 1e9)
|
||||
throw 'invalidTransferRate';
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user