Bitcoin Forum
May 09, 2024, 02:02:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Odd transaction inputs - Please explain this to me  (Read 424 times)
sd (OP)
Hero Member
*****
Offline Offline

Activity: 730
Merit: 500



View Profile
January 21, 2014, 10:53:10 AM
 #1


I'm a little confused about the transaction inputs the bitcoin client used in a transaction I made. Can someone explain transaction 20739340da0db8b694994b1d9d4608d00b1ad1b2739c57b40973a2f63df54c07 ?

This is me sending 0.025 bitcoins to someone from my wallet. The inputs puzzle me.

2 Inputs:
0.0290498 BTC
0.01054802 BTC.
2 outputs:
0.025 BTC -my desired output
0.01409782 BTC -my change
Transaction fee - 0.0005 BTC

Why did the bitcoin client use the 0.01054802 BTC input at all? It could have just used the 0.0290498 BTC input which would have covered my output, the transaction fee, and left change. Is this something to do with prioritizing old coins?
1715220129
Hero Member
*
Offline Offline

Posts: 1715220129

View Profile Personal Message (Offline)

Ignore
1715220129
Reply with quote  #2

1715220129
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
January 21, 2014, 05:45:20 PM
 #2

I suspect it has something to do with not wanting to leave a 0.004 BTC dust output in your wallet as change.

By including the 0.01054802 BTC input, the wallet essentially combines it with what would otherwise be a 0.0040498 BTC output resulting in replacing the two potentially small outputs: 0.01054802 BTC & 0.0040498 BTC into one, more usable, larger output: 0.01409782 BTC

I'll take a look at th code when I get a chance and see if I can come up with a better explanation of the logic.
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!