TransactionBuilder: add fee safety
This commit is contained in:
parent
11079bfafb
commit
e835f1fe95
4 changed files with 67 additions and 22 deletions
src
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue