Browse Source

use higher default FEE_PER_KB and FEE_SECURITY_MARGIN

patch-2
Gabe Gattis 8 years ago
parent
commit
cc764dbc2a
No known key found for this signature in database GPG Key ID: 441430987182732C
  1. 4
      lib/transaction/transaction.js

4
lib/transaction/transaction.js

@ -66,7 +66,7 @@ var MAX_BLOCK_SIZE = 1000000;
Transaction.DUST_AMOUNT = 546;
// Margin of error to allow fees in the vecinity of the expected value but doesn't allow a big difference
Transaction.FEE_SECURITY_MARGIN = 15;
Transaction.FEE_SECURITY_MARGIN = 150;
// max amount of satoshis in circulation
Transaction.MAX_MONEY = 21000000 * 1e8;
@ -78,7 +78,7 @@ Transaction.NLOCKTIME_BLOCKHEIGHT_LIMIT = 5e8;
Transaction.NLOCKTIME_MAX_VALUE = 4294967295;
// Value used for fee estimation (satoshis per kilobyte)
Transaction.FEE_PER_KB = 10000;
Transaction.FEE_PER_KB = 100000;
// Safe upper bound for change address script size in bytes
Transaction.CHANGE_OUTPUT_MAX_SIZE = 20 + 4 + 34 + 4;

Loading…
Cancel
Save