Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong balance #14

Closed
WavescapTorben opened this issue Jul 11, 2021 · 9 comments
Closed

Wrong balance #14

WavescapTorben opened this issue Jul 11, 2021 · 9 comments

Comments

@WavescapTorben
Copy link

WavescapTorben commented Jul 11, 2021

After downloading new 1.3 branch (few days ago) and running w8_update.php I am getting a wrong balance for WETH on address 3PPdeWwrzaxqgr6BuReoF3sWfxW8SYv743D It says -0.00199978 WETH but it should be 0.00000022 WETH like w8io.ru shows here: https://w8io.ru/3PPdeWwrzaxqgr6BuReoF3sWfxW8SYv743D

I am seeing all the new dapp-to-dapp transactions on my installation, too, but there is one transaction (or dapp result) that is wrong on my side, I attached it as image:
Screenshot from 2021-07-11 21-34-07
Instead of invoke +0.00000000 Waves it should be +0.00200000 WETH like w8io.ru shows.

Does somebody else have this problem or have an idea what is wrong on my side?

@WavescapTorben WavescapTorben changed the title Wrong balances Wrong balance Jul 11, 2021
@deemru
Copy link
Owner

deemru commented Jul 11, 2021

Did you update to 1.3 and rebuild your database with w8_update from scratch?

If not, it must be done.

@WavescapTorben
Copy link
Author

WavescapTorben commented Jul 11, 2021

Yes I did everything from scratch and even tried a second time with same result. I will try on other machine with other node now..

@WavescapTorben
Copy link
Author

Now I tried a third time everything from scratch with same wrong result. But I noticed a difference between my node API and the API of w8io.ru, maybe that could be the problem?

My node API:
https://node.wscan.io/transactions/info/ECseEjTzQdiWfxyxP5PQa1g5MqTjZYrkhX2PmJtQStwK
w8io.ru API:
https://w8io.ru/tx/ECseEjTzQdiWfxyxP5PQa1g5MqTjZYrkhX2PmJtQStwK

$tx['stateChanges']['invokes'][0]['payment'] is an attribute name at my node, but at w8io.ru its in plural form:
$tx['stateChanges']['invokes'][0]['payments']

@deemru
Copy link
Owner

deemru commented Jul 27, 2021

payments is the correct one:

if( isset( $tx['payments'][0] ) )

You have to update your node it seems and it is always better to use the latest version.

@WavescapTorben
Copy link
Author

WavescapTorben commented Jul 27, 2021

That is strange, I am sure I used latest node mainnet release (1.3.6) and the official API shows same as mine:
https://nodes.wavesnodes.com/transactions/info/ECseEjTzQdiWfxyxP5PQa1g5MqTjZYrkhX2PmJtQStwK

@deemru
Copy link
Owner

deemru commented Jul 27, 2021

That is strange, I am sure I used latest node mainnet release (1.3.6) and the official API shows same as mine:
https://nodes.wavesnodes.com/transactions/info/ECseEjTzQdiWfxyxP5PQa1g5MqTjZYrkhX2PmJtQStwK

Thanks for this notice, actually i use 1.3.5 version on my node, so 1.3.6 looks unsupported, i will fix that.

deemru added a commit that referenced this issue Jul 27, 2021
@WavescapTorben
Copy link
Author

All clear thanks!

deemru added a commit that referenced this issue Jul 27, 2021
@deemru
Copy link
Owner

deemru commented Jul 27, 2021

Seems fixed.

Check updated readme: https://github.com/deemru/w8io/blob/1.3/README.md

Then you need to rollback php w8_updater.php rollback 2651414 and then update as usual.

@WavescapTorben
Copy link
Author

Yes its fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants