Taking control of the dynamic bitcoind tx fee

3

I'm running bitcoind for a service that works with quite small user withdraws most of the time. Recently I noticed that instead of the standard 0.0001 tx fee from the recent past, it already charges up to 0.0008 for some transactions which I find expensive for this specific use case. (I read about that update to dynamic fees but then forgot about it)

getinfo gives "paytxfee" : 0.00000000" by the way. I haven't explicitly set the fee in bitcoin.conf

So, if one doesn't want to take advantage of the dynamic fee but set a fixed one - How is best to do it? Just "bitcoin-cli settxfee 0.0001" or in the .conf file? Would it actually be enforced or it will still disregard it in some cases? - if it actually works to set it as fixed, how do you think that would affect the confirmation time? Will 0.0001 be fairly enough for the time being to get in the very next block?

CryptoPanda

Posted 2015-04-30T17:38:00.813

Reputation: 41

Can you give the txid of such a transaction, so we can see its details? One possibility is that the transaction is larger than 1 kb (the standard fee is btc 0.0001 per kb).Nate Eldredge 2015-04-30T18:16:18.303

Yes, here is one https://blockchain.info/tx/3db46410c589383320dc0ab12cc884f8c36201f40c9bc57f4c8e18b1413b0759

This particular one is for bigger amount but still, since it's 1257 bytes should be able to be sent just fine for 0.0002 fee right?

CryptoPanda 2015-05-02T12:55:56.027

Answers

1

First: remind settxfee is not a absolute fee per transaction. It's a fee per kilobyte.

Example:

  1. Alice sends 1BTC to Bob
  2. Alice has 11 times 0.1 BTC in her wallet (she received 11 times 0.1 BTC from different persons)
  3. Alice transaction will require all 11 x 0.1BTC inputs to create the 1BTC-to-Bob-transaction
  4. Therefore the transaction is bigger (in terms of bytesize) then if she would hold 1 x 1.1BTC in her wallet.

Bitcoin-Core will only accept transaction to it's mempool which contains the minimum fee.

Jonas Schnelli

Posted 2015-04-30T17:38:00.813

Reputation: 5 465

0

Yes, if you use settxfee that overrides and it will use that set amount.

George

Posted 2015-04-30T17:38:00.813

Reputation: 586

Should I set that in the .conf file or as bitcoin-cli command?CryptoPanda 2015-05-04T17:50:20.363

@CryptoPanda Personally I do it through RPC/bitcoin-cli as I don't restart my node(s) very often.George 2015-05-05T19:06:08.013

Ok I'll try that Does that way of setting it stays after restart?CryptoPanda 2015-05-07T11:00:35.147

@CryptoPanda No, I don't think it does. You could use the -maxtxfee=<amt> parameter on startup perhaps.George 2015-05-08T17:53:58.920