TransactionBuilder: add fee safety

This commit is contained in:
Daniel Cousens 2016-11-09 13:01:29 +11:00 committed by Thomas Kerin
parent 11079bfafb
commit e835f1fe95
4 changed files with 67 additions and 22 deletions

View file

@ -10,7 +10,7 @@ function BIP32Path (value) {
}
BIP32Path.toJSON = function () { return 'BIP32 derivation path' }
var SATOSHI_MAX = 2.1 * 1e15
var SATOSHI_MAX = 21 * 1e14
function Satoshi (value) {
return typeforce.UInt53(value) && value <= SATOSHI_MAX
}