Bitcoin Forum
May 21, 2024, 05:59:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Tx fee applied when not expected  (Read 1268 times)
btcxchange (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile WWW
April 28, 2013, 03:54:49 PM
 #1


I'm using testnet and testing my understanding of txn fees and came across a txn that I would not expect a fee to be applied.

From https://en.bitcoin.it/wiki/Transaction_fees

Quote
A transaction will be sent without fees if these conditions are met:
It is smaller than 10 thousand bytes.
All outputs are 0.01 BTC or larger.
Its priority is large enough (see the Technical Info section below)

Using the priority formula in the Technical Info section, I calculated the fees for tx e212c55 using the following information:

Input tx: adff686
Input amt: 399950000
Input age: (Tx e212c55 is in block 68950 - Tx adff686 in block 68414) = 536
Priority = 399950000 x 536 / 225 byte size = 952,769,777.77

This is greater than 57,600,000 priority so why did bitcoind enforce a tx fee of 0.0005?  Huh

grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
April 28, 2013, 04:50:12 PM
 #2

did it ask you to pay a fee? or was it automatically included due to settings?

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
btcxchange (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile WWW
April 28, 2013, 05:09:57 PM
 #3


The client had a smaller fee of 0.00003 set using 'settxfee'. This was correctly applied to two earlier txns (08da53 and f8187d).

The bitcoind client used 0.0005 automatically for the txn in question.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 28, 2013, 05:18:39 PM
 #4

- snip -
Input age: (Tx e212c55 is in block 68950 - Tx adff686 in block 68414) = 536
- snip -

The age of the input is determined when the transaction is created in the client, not when it is included in a block.  You are using the block that Tx e212c55 was included in to determine age.  How certain are you that there weren't multiple blocks added to the client's blockchain between the initial buliding of the transaction and when it was eventually included in a block?
btcxchange (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile WWW
April 28, 2013, 06:41:11 PM
 #5

How certain are you that there weren't multiple blocks added to the client's blockchain between the initial buliding of the transaction and when it was eventually included in a block?

Not sure if this is what you mean but the txn was initiated only a few mins prior to appearing in the next block so I'd imagine the age is at most 1 or 2 out. The txn was added to the same block 68950 as the previous txn (f8187d) initiated from the same client.


kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
April 29, 2013, 11:31:39 AM
 #6

Just out of curiosity, did you use sendtoaddress?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
btcxchange (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile WWW
April 30, 2013, 06:45:05 PM
 #7


No, I used sendfrom.

I wonder if the client forces the 0.0005 fee for sending a number of transactions in a small time frame.  Huh

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!