UT: Add helper for setting transfer rate.

This commit is contained in:
Arthur Britto
2012-11-03 13:06:55 -07:00
parent f4d4b3920d
commit 7b268647a0
3 changed files with 24 additions and 14 deletions

View File

@@ -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;
}