Title: Large Transaction Displayed Fees Post by: FullofSats on July 14, 2019, 04:41:13 PM Hello. First time poster but long time lurker. This might be a noob question... By 'Large Transaction' I mean large number of inputs and outputs.
I'm looking into Wasabi CoinJoins on Blockchain explorers and there's something I don't understand: There is a slight difference between, on one hand the total btc input minus the total btc output, and on the other hand, the displayed miner fee. For example in this transaction: https://blockchair.com/bitcoin/transaction/e9abc669f19439f7f738e26516106d74ddfc8ff761ce6e718dc9479392a05dfb The displayed total input is 81.26491943, total output is 81.26462135, and miner's fee is 0.00029808. But if I click on the 'Raw transaction' button and add up all outputs from the JSON code, I get a total of 81.26462131. There's a 4 satoshis difference. The transaction is displayed the same way on a few blockchain explorers. I also saw the same problem with other large transactions. Where is the problem? Thanks. Title: Re: Large Transaction Displayed Fees Post by: achow101 on July 14, 2019, 07:12:01 PM Are you sure that you are not making an error somewhere? I computed it myself and summing up the values from the JSON output given by blockchair is 81.26462135 as stated on the website. I get the same from my own node.
Title: Re: Large Transaction Displayed Fees Post by: nc50lc on July 15, 2019, 03:10:19 AM I copied the output values directly from the raw hex and got these:
.
Now, copy this code and add all of them or paste the whole code here (scroll down) to add: http://v1.calculla.com/columnar_add (http://v1.calculla.com/columnar_add) Code: 8.60103636 Title: Re: Large Transaction Displayed Fees Post by: FullofSats on July 15, 2019, 02:49:09 PM You were both right. The error lied in the softwares I was using: wolfram mathematica and libreoffice calc. It seems that for floating numbers greater than 1, the number of digits after decimal point is rounded to six, hence the difference. There is no problem for amounts lower than 1.
Thanks. |