mysteriumnetwork / node

Mysterium Network Node - official implementation of distributed VPN network (dVPN) protocol
https://mysterium.network
GNU General Public License v3.0
1.11k stars 312 forks source link

Getting underpaid sometimes #5527

Closed lollapalooza1973 closed 2 years ago

lollapalooza1973 commented 2 years ago

Describe the bug Sometimes the earnings do not match with the price per GB and the transferred data

Screenshots 2 3 1

Environment (please complete the following information):

Logs: myst.log

lollapalooza1973 commented 2 years ago

immagine immagine

cybermodz commented 2 years ago

I am too getting underpaid for my earnings, for example, I have got a b2b VPN connection and they have used 34GB and paid 2.924myst but when I multiply their use and the rate it says they paid for 26GB of data, not 34GB so I am missing pay for 8GB. I am losing money as it is not calculating the correct values. Here is what it is showing me.

image

lollapalooza1973 commented 2 years ago

This one also: immagine

Price per GB is 0.1208 1.84 GB * 0.1208 = 0.222 Myst. Earnings are 0.19.

lollapalooza1973 commented 2 years ago

immagine Another example. Price per GB is 0.0914 Transferred data is 141 MB Earnings is supposed to be around 0.012 Myst, bu I earned 0.00627 Myst (about half of what the client was supposed to pay).

lollapalooza1973 commented 2 years ago

Again... immagine

And again... immagine

lollapalooza1973 commented 2 years ago

Look at this... price was 0.1209 Myst per GB; transferred data was 10.78 GB. Payment should be 1,303302 Myst, plus the" price per hour" that I did not take into account. Instead, I've been paid 1,20 Myst. More than 0,10 Myst less than expected...

image

n10ty commented 2 years ago

@lollapalooza1973 do you run several nodes with one identity at the same time (Like on laptop and raspberry, for example) ?

lollapalooza1973 commented 2 years ago

@n10ty just one node, on Raspberry. That's all.

cybermodz commented 2 years ago

@n10ty same issue just one node on raspberry pi 4

n10ty commented 2 years ago

@cybermodz I see your ongoing session, you've posted before: 41.9Gb * 0.09MYST/Gb = 3.7 MYST. What do you see in UI now?

cybermodz commented 2 years ago

@n10ty this is what I got going now one that I checked. The b2b connection has done 13.8GB at 1.190myst. However, when I do that maths it shows that 1.190 is paid for 10.8GB. So they have not paid for 3GB and this has stayed like this for some time now. Here are some others I did not check and am sure that they are underpaying me. image image

n10ty commented 2 years ago

@cybermodz Please consider only finished session, because you don't get paid instantly - there is a delay after bandwdith consumption

lollapalooza1973 commented 2 years ago

@n10ty In my screenshots I have considered only sessions that were concluded since some time.

n10ty commented 2 years ago

There is some delay between the invoice sent and the invoice getting paid (because it's impossible to do settlement instantly for each byte of data). This delay grows over the session. It means that if the consumer will decline to pay latest invoice you will not get paid for latest invoice period. For long session node also guarantee provider will get paid. But there is some leeway, because data could be send but not be received, therefore not paid, for example. We have some improvements to introduce in this area. For now let me know if you have finished sessions longer than few minutes underpaid more than half for example.

lollapalooza1973 commented 2 years ago

@n10ty look here: https://github.com/mysteriumnetwork/node/issues/5527#issuecomment-1272573351 Session from Algeria lasted 24 minutes.

It paid 0.198 instead of 0.222. It's about 10% less.