allow feePerKb to be set to zero

This commit is contained in:
Wei Lu 2014-03-26 08:37:07 +08:00
parent 68b08b638a
commit 8d2525dba1
2 changed files with 7 additions and 1 deletions

View file

@ -194,6 +194,11 @@ describe('Transaction', function() {
var tx = Transaction.deserialize(fixtureTx2Hex)
assert.equal(tx.estimateFee(10000), 10000)
})
it('allow feePerKb to be set to 0', function(){
var tx = Transaction.deserialize(fixtureTx2Hex)
assert.equal(tx.estimateFee(0), 0)
})
})
})