Browse Source

test fee multiplier

feat/estimateFee-limit
Ivan Socolsky 8 years ago
parent
commit
aa35fc21bc
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 8
      test/integration/server.js

8
test/integration/server.js

@ -2146,6 +2146,11 @@ describe('Wallet service', function() {
before(function() {
levels = Defaults.FEE_LEVELS;
Defaults.FEE_LEVELS = [{
name: 'urgent',
nbBlocks: 1,
multiplier: 1.5,
defaultValue: 50000,
}, {
name: 'priority',
nbBlocks: 1,
defaultValue: 50000
@ -2186,6 +2191,9 @@ describe('Wallet service', function() {
fees = _.zipObject(_.map(fees, function(item) {
return [item.level, item];
}));
fees.urgent.feePerKb.should.equal(60000);
fees.urgent.nbBlocks.should.equal(1);
fees.priority.feePerKb.should.equal(40000);
fees.priority.nbBlocks.should.equal(1);

Loading…
Cancel
Save