Browse Source

fee levels set to 1, 2, 6

activeAddress
Ivan Socolsky 10 years ago
parent
commit
3bd341c65f
  1. 4
      lib/server.js
  2. 16
      test/integration/server.js

4
lib/server.js

@ -73,11 +73,11 @@ WalletService.FEE_LEVELS = [{
defaultValue: 50000 defaultValue: 50000
}, { }, {
name: 'normal', name: 'normal',
nbBlocks: 4, nbBlocks: 2,
defaultValue: 20000 defaultValue: 20000
}, { }, {
name: 'economy', name: 'economy',
nbBlocks: 12, nbBlocks: 6,
defaultValue: 10000 defaultValue: 10000
}]; }];

16
test/integration/server.js

@ -1523,8 +1523,8 @@ describe('Wallet service', function() {
it('should get current fee levels', function(done) { it('should get current fee levels', function(done) {
helpers.stubFeeLevels({ helpers.stubFeeLevels({
1: 40000, 1: 40000,
4: 20000, 2: 20000,
12: 18000, 6: 18000,
}); });
server.getFeeLevels({}, function(err, fees) { server.getFeeLevels({}, function(err, fees) {
should.not.exist(err); should.not.exist(err);
@ -1535,10 +1535,10 @@ describe('Wallet service', function() {
fees.priority.nbBlocks.should.equal(1); fees.priority.nbBlocks.should.equal(1);
fees.normal.feePerKB.should.equal(20000); fees.normal.feePerKB.should.equal(20000);
fees.normal.nbBlocks.should.equal(4); fees.normal.nbBlocks.should.equal(2);
fees.economy.feePerKB.should.equal(18000); fees.economy.feePerKB.should.equal(18000);
fees.economy.nbBlocks.should.equal(12); fees.economy.nbBlocks.should.equal(6);
done(); done();
}); });
}); });
@ -1558,8 +1558,8 @@ describe('Wallet service', function() {
it('should get default fees if network cannot estimate (returns -1)', function(done) { it('should get default fees if network cannot estimate (returns -1)', function(done) {
helpers.stubFeeLevels({ helpers.stubFeeLevels({
1: -1, 1: -1,
4: 18000, 2: 18000,
12: 0, 6: 0,
}); });
server.getFeeLevels({}, function(err, fees) { server.getFeeLevels({}, function(err, fees) {
should.not.exist(err); should.not.exist(err);
@ -1570,10 +1570,10 @@ describe('Wallet service', function() {
should.not.exist(fees.priority.nbBlocks); should.not.exist(fees.priority.nbBlocks);
fees.normal.feePerKB.should.equal(18000); fees.normal.feePerKB.should.equal(18000);
fees.normal.nbBlocks.should.equal(4); fees.normal.nbBlocks.should.equal(2);
fees.economy.feePerKB.should.equal(0); fees.economy.feePerKB.should.equal(0);
fees.economy.nbBlocks.should.equal(12); fees.economy.nbBlocks.should.equal(6);
done(); done();
}); });
}); });

Loading…
Cancel
Save