Bitcoin Forum
April 26, 2024, 09:30:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Large Transaction Displayed Fees  (Read 224 times)
FullofSats (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 8


View Profile
July 14, 2019, 04:41:13 PM
Last edit: July 14, 2019, 05:17:10 PM by FullofSats
Merited by LoyceV (1), ABCbits (1)
 #1

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.
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714167039
Hero Member
*
Offline Offline

Posts: 1714167039

View Profile Personal Message (Offline)

Ignore
1714167039
Reply with quote  #2

1714167039
Report to moderator
1714167039
Hero Member
*
Offline Offline

Posts: 1714167039

View Profile Personal Message (Offline)

Ignore
1714167039
Reply with quote  #2

1714167039
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
July 14, 2019, 07:12:01 PM
Merited by LoyceV (1), ABCbits (1)
 #2

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.

nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
July 15, 2019, 03:10:19 AM
Merited by LoyceV (2), ABCbits (1)
 #3

I copied the output values directly from the raw hex and got these:
.
  • 84 x 0.10239329btc = 8.60103636btc
  • 20 x 0.20473754btc = 4.0947508btc
  • 6 x 0.40947508btc = 2.45685048btc
  • 4 x 0.81895016btc = 3.27580064btc
  • 3 x 1.63790032btc = 4.91370096btc
  • 3 x 3.27580064btc = 9.82740192btc
  • 2 x 6.55160128btc = 13.10320256btc
  • and more outputs of different value.

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
Code:
8.60103636
4.0947508
2.45685048
3.27580064
4.91370096
9.82740192
13.10320256
0.10268921
0.10185835
0.10238689
0.10284367
0.10242793
0.10196493
3.53096079
0.00206237
0.10196493
0.09094832
0.00489093
0.10298729
0.10208927
0.10382393
0.10402397
0.00105833
0.00465918
0.10208927
0.10353007
0.10196493
0.10208927
0.00115391
0.10208927
0.10213517
0.10208927
0.10400913
0.10252187
0.10185835
0.02236367
0.00073507
0.00199087
0.2118561
0.04666496
0.02228191
0.01954763
0.0907779
0.00384927
0.00314477
14.99773036
0.0011237
0.00273345
0.1434469
0.07885171
10.9170006
0.02734927
0.05574613
0.20853482
0.00102179
0.00611283
0.01339238
0.10363081
0.00228903
0.10382393
0.07111287
0.00253066
0.0023441
0.10189219
0.0099782
0.01764649
0.10181621
0.10196493
0.00235631
0.00087706
0.10347883
0.0747993
0.03097927
0.10208927
0.10735259
0.10423993
0.10670625
1.04619355
0.02834896
You'll get 81.26462135 which is the same as the displayed total output.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
FullofSats (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 8


View Profile
July 15, 2019, 02:49:09 PM
Merited by LoyceV (1), DarkStar_ (1)
 #4

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.
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!