settxfee strange behaviour #11992

issue khelle opened this issue on December 22, 2017
  1. khelle commented at 10:46 PM on December 22, 2017: none

    I don't understand how the settxfee works exactly. In documentation it is written that it sets the transaction fee per kB, but I dont' see this to be the case.

    I am using Bitcoin Core 0.15.1, a do the following steps:

    bitcoin-cli settxfee 0.003 // returns true
    bitcoin-cli sendmany "" { ... } // I give few addresses here to transfer
    

    Then the transaction shows on blockchain with following params: size: 1109 bytes fee per Byte: 169.071 sat/B

    How is it possible? Since I put 0.003 per kB I would expect the "fee per Byte" to be ~ 292 sat/B.

  2. morcos commented at 12:28 AM on December 23, 2017: member

    If you are sending from segwit inputs then the problem could be the block explorer that should instead be displaying your fees per virtual size.

    See this post: https://medium.com/@murchandamus/psa-wrong-fee-rates-on-block-explorers-48390cbfcc74

    If you aren't sending from a segwit address, take a look at your debug log and there should be a line printed that starts with "Fee Calculation:" , this line will provide debugging information to explain how the fee for your transaction was arrived at.

  3. fanquake added the label TX fees and policy on Dec 23, 2017
  4. khelle commented at 1:54 PM on January 3, 2018: none

    This is one the transactions I have sent https://blockexplorer.com/tx/ee35ff8ce356844fc6708be5c07f68b2705fe863e7a134f92a82143ea4b4aeeb

    This is not a segwit transaction, and it clearly states that it was sent with 0.002 BTC / kB instead of the 0.003 I have been setting. What's more, every transaction is being sent with a little different ratio! Its not 0.002 always, but it ranges from 0.002-0.004. Its almost as setting the 0.003 set some kind of average fee, not hard restriction.

  5. morcos commented at 2:30 PM on January 3, 2018: member

    Can you please post the line that starts with "Fee Calculation:" from your debug.log corresponding to this transaction? Or feel free to email me at morcos at chaincode.com.

    This line will print to your debug log whenever you send a transaction regardless of your debug settings.

  6. jnewbery commented at 6:06 PM on April 2, 2018: member

    What's the latest on this? @khelle - did you provide the debug.log line to @morcos ?

  7. MarcoFalke closed this on Apr 27, 2020

  8. MarcoFalke locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me