shardeum / bug-reporting

59 stars 33 forks source link

Validator Staked Wallet Has SHM Balance Decrease In 0.01 SHM Increments Over Time #32

Closed hansfzlorenzana closed 1 year ago

hansfzlorenzana commented 1 year ago
What is the issue?
I noticed that my SHM balance keeps on decreasing over time after running a validator node. I haven't rotated into 'active' status yet and is still on 'standby'. There are only two transactions on my address: Transfer method (received 15 SHM from faucet) and Staking method.

What impact does the issue have?

I am not exactly sure if it affects every user on Sphinx network. 
How to reproduce the issue?
Again, I'm not sure how but here's what I've done.
- Run a node
- Request from faucet
- Stake
- 'Standby' status, never been on 'active'

I noticed it's decreasing after staking.
Address: https://explorer-sphinx.shardeum.org/address/0x7c5fbb1af2adad3b7665f2001bd429330a5cd643 Event Amount Fee Balance
Before running node 0 SHM
Faucet + 15 SHM 15 SHM
Staking - 14 SHM -0.01 SHM 0.98 SHM
, , , 0.86 SHM - yesterday
, , , 0.46 SHM - today
, , , 0.45 SHM - today
, , , 0.43 SHM - current

Current balance is 0.43 SHM. Please validate if it decreases again.

What other resources can you share regarding this issue?
Screen Shot 2023-02-04 at 8 37 51 AM Screen Shot 2023-02-04 at 8 47 33 AM
bogachevanton commented 1 year ago

same for me like 1 SHM lost for 3 days

MarcusWentz commented 1 year ago

@bogachevanton

Can you share your wallet address on the Betanet 1.X explorer? We can take a deeper look at your address.

bogachevanton commented 1 year ago

@bogachevanton

Can you share your wallet address on the Betanet 1.X explorer? We can take a deeper look at your address.

sure, here is my adress https://explorer-sphinx.shardeum.org/address/0xddb47057e44621f30495af8134babe687a8b6c58

used faucet 2 times (+30 SHM) TXs: https://explorer-sphinx.shardeum.org/transaction/0x1dc8ba79cf1d4a6457289f26fe1474f0744c73d5a4ac6467212add3157d3982c https://explorer-sphinx.shardeum.org/transaction/0xc237b73e8f9d35e2813659fae26e2c167fc8c62a1030362437a6ad2d9c8c6b60

staked 11 SHM in first node and unstake after turn off (0.02 fee) staked 17 SHM right now in validator node (0.01 fee)

Balance right now: 11.29 SHM and decreasing

but 30 - 17 - 0.03 = 12.97 not equal 11.29 11.11

ksbaskar commented 1 year ago
M1 M2

Yes facing same issue here.

AndreiW3b3 commented 1 year ago

i noticed the exact same thing

MarcusWentz commented 1 year ago

Did you notice this issue on Betanet 1.1 as well?

MarcusWentz commented 1 year ago

This issue still seems present in Betanet 1.1 as reported here:

https://github.com/Shardeum/shardeum-bug-reporting/issues/56

AndreiW3b3 commented 1 year ago

I still noticed the same bug after the update. Balance decreased from 4.98 to 4.90 within 2 h

MarcusWentz commented 1 year ago

@AndreiW3b3

What is your wallet address and nominee public key so we can take a look?

bogachevanton commented 1 year ago

Did you notice this issue on Betanet 1.1 as well?

Yes, bug stays. Balance decreased by 0.01 in sometime when node is up.

Wallet: 0xddb47057E44621f30495Af8134bABe687A8B6C58 Nominee key: a372310355c3d36e207136f997cb5df7dca3bab73c8c32d2e058e1d098e0a7e5

or explorer link

https://explorer-sphinx.shardeum.org/account/0xddb47057e44621f30495af8134babe687a8b6c58

AndreiW3b3 commented 1 year ago

@MarcusWentz 0x7eb1DD4eC345dF607885597EC9f8aEFb4EeEEd4a nominee 5b96a26595676cfcaa9585f8eb9db11bd1d4d596ce1879541a786018e17d5f55

MarcusWentz commented 1 year ago

There is a potential bug fix coming soon for this it sounds like.

Once the potential bug fix is added, we can check if the issue still exists.

MarcusWentz commented 1 year ago

Please update your validator to version 1.1.1.

Here's what you need to do:

  1. Stop and unstake your validator.
  2. If you're within the Validator CLI:
exit

then:

cd ..
  1. Enter:
curl -O https://gitlab.com/shardeum/validator/dashboard/-/raw/main/installer.sh && chmod +x installer.sh && ./installer.sh
  1. Start the validator.
  2. Stake 10 SHM.
AndreiW3b3 commented 1 year ago

at the moment it is not droping anymore. However sometimes it shows 0 as my balance and sometimes it goes back to intial ballance

AndreiW3b3 commented 1 year ago

https://www.loom.com/share/b966b289ef034d04872ab37c543ef112

MarcusWentz commented 1 year ago

@AndreiW3b3

What is your wallet address?

AndreiW3b3 commented 1 year ago

@MarcusWentz 0x7eb1DD4eC345dF607885597EC9f8aEFb4EeEEd4a

MarcusWentz commented 1 year ago

@AndreiW3b3

I see your wallet has sufficient funds on the Betanet 1.1 Explorer:

https://explorer-sphinx.shardeum.org/account/0x7eb1dd4ec345df607885597ec9f8aefb4eeeed4a

There are some RPC issues related to validators causing wallets to randomly detect 0 SHM. We are investigating this issue.

Can you transfer SHM between wallets as a test or does that transaction fail?

AndreiW3b3 commented 1 year ago

@MarcusWentz first 2 attempts it did not work. did even show as a failed transactio

this is the one that it wokerd https://www.loom.com/share/508a3d25d0614bb9983811e9c3b75eab

AndreiW3b3 commented 1 year ago

https://www.loom.com/share/684bf6477aa24e7e8ea9af053634b1ad

MarcusWentz commented 1 year ago

The RPC issue seems to be causing transfers to fail as well.

Once transfers are stable, other transactions should be stable as well.

MarcusWentz commented 1 year ago

Closing this issue since it seems resolved.

@AndreiW3b3

Let's discuss the transaction issues in this bug report:

https://github.com/Shardeum/shardeum-bug-reporting/issues/92