wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
42 stars 23 forks source link

wrong net usage #103

Closed dev-dantealighieri closed 5 months ago

dev-dantealighieri commented 5 months ago

example transaction

looking in this transaction, explorer shows net usage as 136 bytes, but when i fetch this data using the indexer, i always get 1/8th of the net usage, which is 17 in this case.

I wonder which is correct, is it 17 bytes and 136 bits, or 136 bytes and 17 x something?

thanks, Dante

aaroncox commented 5 months ago

One of them is actual net usage and the other is represented as "words" (64bit). I'm not sure why they designed the different APIs to have these two different values. We are just reporting the data that exists though.

net_usage_words, being the number of 64bit words, would multiply the value by 8.

So 17 * 8 = 136.

dev-dantealighieri commented 5 months ago

oh, dear EOS never forgets to surprise us 😊

thanks!