Bitcoin Forum
May 11, 2024, 06:08:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction fee - size rounding  (Read 725 times)
arnuschky (OP)
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
November 18, 2013, 11:09:47 PM
 #1

Hello,

the wiki [1] states regarding the transaction fees that:

Quote
Otherwise, the reference implementation will round up the transaction size to the nearest thousand bytes and then add a fee of 0.0001 BTC per thousand bytes.

Now, "to round up" and "to the nearest" are contradictory.  Huh Which one is it? [2] doesn't help either.

[1] https://en.bitcoin.it/wiki/Transaction_fees
[2] https://bitcointalk.org/index.php?topic=219504.0
1715407715
Hero Member
*
Offline Offline

Posts: 1715407715

View Profile Personal Message (Offline)

Ignore
1715407715
Reply with quote  #2

1715407715
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715407715
Hero Member
*
Offline Offline

Posts: 1715407715

View Profile Personal Message (Offline)

Ignore
1715407715
Reply with quote  #2

1715407715
Report to moderator
1715407715
Hero Member
*
Offline Offline

Posts: 1715407715

View Profile Personal Message (Offline)

Ignore
1715407715
Reply with quote  #2

1715407715
Report to moderator
1715407715
Hero Member
*
Offline Offline

Posts: 1715407715

View Profile Personal Message (Offline)

Ignore
1715407715
Reply with quote  #2

1715407715
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
November 18, 2013, 11:11:17 PM
Last edit: November 19, 2013, 02:44:35 AM by DeathAndTaxes
 #2

It is round up.  I will update the wiki this evening unless someone does it before me.

1 to 1000 bytes = 1KB for fee purposes.
1001 to 2000 bytes = 2KB for fee purposes.

Before someone correct it yes I know KB is usually 1024 bytes but the source code uses base 10 not base 2.  Note sure why but it doesn't and it isn't going to change now.
arnuschky (OP)
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
November 18, 2013, 11:12:00 PM
 #3

Ok, great! Thanks for the super fast clarification!
mufa23
Legendary
*
Offline Offline

Activity: 1022
Merit: 1001


I'd fight Gandhi.


View Profile
November 18, 2013, 11:24:33 PM
 #4

Thanks for the clarification! I was wondering about this myself.

Positive rep with: pekv2, AzN1337c0d3r, Vince Torres, underworld07, Chimsley, omegaaf, Bogart, Gleason, SuperTramp, John K. and guitarplinker
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
November 19, 2013, 02:58:06 AM
 #5

Updated wiki:

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

Otherwise, the reference implementation will round up the transaction size to the next thousand bytes and add a fee of 0.1 mBTC (0.0001 BTC) per thousand bytes[1]. As an example, a fee of 0.1 mBTC (0.0001 BTC) would be added to a 746 byte transaction, and a fee of 0.2 mBTC (0.0002 BTC) would be added to a 1001 byte transaction. Users may increase the default 0.0001 BTC/kB fee setting, but cannot control transaction fees for each transaction. Bitcoin-Qt does prompt the user to accept the fee before the transaction is sent (they may cancel the transaction if they are not willing to pay the fee).  Note that a typical transaction is 500 bytes, so the typical transaction fee for low-priority transactions is 0.1 mBTC (0.0001 BTC), regardless of the number of bitcoins sent.

Hopefully that avoids any future confusion.
arnuschky (OP)
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
November 19, 2013, 08:31:58 AM
 #6

Hopefully that avoids any future confusion.

Very clear, yes. Good example, thanks.
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!