Browse Source

Merge pull request #596 from isocolsky/ref/fee-levels

Redefine priority & normal fee levels
activeAddress
Matias Alejo Garcia 8 years ago
committed by GitHub
parent
commit
3fb33218a7
  1. 4
      lib/common/defaults.js
  2. 25
      test/integration/server.js

4
lib/common/defaults.js

@ -26,11 +26,11 @@ Defaults.SCAN_ADDRESS_GAP = Defaults.MAX_MAIN_ADDRESS_GAP + 20;
Defaults.FEE_LEVELS = [{
name: 'priority',
nbBlocks: 1,
nbBlocks: 2,
defaultValue: 50000
}, {
name: 'normal',
nbBlocks: 2,
nbBlocks: 3,
defaultValue: 40000
}, {
name: 'economy',

25
test/integration/server.js

@ -2043,7 +2043,30 @@ describe('Wallet service', function() {
});
describe('#getFeeLevels', function() {
var server, wallet;
var server, wallet, levels;
before(function() {
levels = Defaults.FEE_LEVELS;
Defaults.FEE_LEVELS = [{
name: 'priority',
nbBlocks: 1,
defaultValue: 50000
}, {
name: 'normal',
nbBlocks: 2,
defaultValue: 40000
}, {
name: 'economy',
nbBlocks: 6,
defaultValue: 25000
}, {
name: 'superEconomy',
nbBlocks: 24,
defaultValue: 10000
}];
});
after(function() {
Defaults.FEE_LEVELS = levels;
});
beforeEach(function(done) {
helpers.createAndJoinWallet(1, 1, function(s, w) {
server = s;

Loading…
Cancel
Save