bitpay / bitcore-lib

A pure and powerful JavaScript Bitcoin library
https://bitcore.io/
Other
613 stars 1.03k forks source link

improve Transaction._estimateFee() precision #277

Open lpinca opened 5 years ago

lpinca commented 5 years ago

Use the binary interpretation of kilobyte (1024 bytes) and return the correct amount of satoshis.

With default parameters and a transaction size of 1024 bytes I expect a fee of 10000 satoshis. The actual result is currently 20000 satoshis.