Bitcoin Forum
May 04, 2024, 08:33:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How serious is this?  (Read 1686 times)
Andrew Vorobyov (OP)
Hero Member
*****
Offline Offline

Activity: 558
Merit: 500



View Profile
March 02, 2012, 11:48:29 AM
 #1

http://www.reddit.com/r/Bitcoin/comments/qdhnq/now_im_confused_negative_transaction_fees/c3wvet2
1714811635
Hero Member
*
Offline Offline

Posts: 1714811635

View Profile Personal Message (Offline)

Ignore
1714811635
Reply with quote  #2

1714811635
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714811635
Hero Member
*
Offline Offline

Posts: 1714811635

View Profile Personal Message (Offline)

Ignore
1714811635
Reply with quote  #2

1714811635
Report to moderator
1714811635
Hero Member
*
Offline Offline

Posts: 1714811635

View Profile Personal Message (Offline)

Ignore
1714811635
Reply with quote  #2

1714811635
Report to moderator
koin
Legendary
*
Offline Offline

Activity: 873
Merit: 1000


View Profile
March 02, 2012, 12:01:58 PM
 #2

not appearing in http://blockexplorer.com
Meni Rosenfeld
Donator
Legendary
*
expert
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
March 02, 2012, 12:11:33 PM
 #3

No, that's normal, tx fees are included in the coinbase transaction.

This is probably a bug in blockchain.info.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028



View Profile WWW
March 02, 2012, 12:16:43 PM
 #4

The negative amount is the transaction fees earned by the miner for generating the block.

A Bitcoin transaction is made of input amounts and output amounts. To pay a transaction fee to get your transaction included in a block in a timely fashion, your Bitcoin client crafts a transaction with a larger input than output. the extra money that doesn't come out of transactions is the fee. The miner gets to keep the transaction fees of all transactions they include in a block.

The previous posters are misinterpreting the information shown about the transaction where the miner gets paid 50BTC reward + fees earned. The input is 50BTC, but the output is 50BTC plus the fees earned, so the block explorers show a negative amount when calculating the "fee" for that transaction.
Meni Rosenfeld
Donator
Legendary
*
expert
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
March 02, 2012, 12:21:29 PM
 #5

The negative amount is the transaction fees earned by the miner for generating the block.

A Bitcoin transaction is made of input amounts and output amounts. To pay a transaction fee to get your transaction included in a block in a timely fashion, your Bitcoin client crafts a transaction with a larger input than output. the extra money that doesn't come out of transactions is the fee. The miner gets to keep the transaction fees of all transactions they include in a block.

The previous posters are misinterpreting the information shown about the transaction where the miner gets paid 50BTC reward + fees earned. The input is 50BTC, but the output is 50BTC plus the fees earned, so the block explorers show a negative amount when calculating the "fee" for that transaction.
No, this isn't what this is, there really are serious display errors in blockchain.info. Neither blockexplorer nor blockchain.info have a habit of displaying tx fees paid to the miner as "negative tx fees". http://blockchain.info/block/0000000000000765555944646925edf0449cb6d33c7d8ecf335b01aec1d94ace is a summary of block 168425 which claims that the total transaction fees paid is negative, which is impossible. And if you look at the transactions in the block, many are displayed as having no input.

I wonder what kind of bug caused this, things are pretty messed up.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028



View Profile WWW
March 02, 2012, 12:44:45 PM
 #6

It looks like that particular block is messed up in their database, the input addresses weren't decoded properly.

Here's the particular answer to why there is a wacky "balance" in that block which the site computes into a negative fee.
http://blockchain.info/tx-index/242753/faf8a4240f6989fc94bc2602147102189af4e50e08ea0d5b36462201af114a24

Compare to blockexplorer which thinks it's fine:
http://blockexplorer.com/tx/faf8a4240f6989fc94bc2602147102189af4e50e08ea0d5b36462201af114a24
piuk
Hero Member
*****
expert
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
March 02, 2012, 02:34:14 PM
 #7

There was a problem with mysqld crashing when I reimported the blockchain last week. In my attempt to debug it I ran a query which shouldn't have been run which messed up some inputs. Rather than start again I decided to leave it and instead write a blockchain verifying program to check and repair the consistency of all inputs and outputs.

However there was all a problem with the verifying program as it would only commit changes for the first error it found. Me being lazy i was only checking the first error, looking up the tx and then assuming the rest would be repaired also. This issue has been fixed now and the verifying program should have repaired everything properly.

TL:DR

Should be fine now.

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!