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

Validator unstake will make other delegator's reward leak. #197

Open
shaitao opened this issue Jan 19, 2022 · 0 comments
Open

Validator unstake will make other delegator's reward leak. #197

shaitao opened this issue Jan 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@shaitao
Copy link
Contributor

shaitao commented Jan 19, 2022

Problem Description

description:
If a validator unstake itself, all degegator of this validator will be unstaked, but after UNBOND_BLOCK_CNT the rewards, except validator self, will not pay to the address of delegators.
Screenshots:
screen

Environmental information

operating system: Ubuntu 18.04 (WSL)

service:
http://localhost/

Code version:
branch-main
version=0.2.11

Steps to reproduce

  1. hard-code UNBOND_BLOCK_CNT=16, and make debug_env
  1. stt init
  1. setup a wallet : fn setup -O node.mnemonic && fn setup -K /tmp/findora/devnet/node0/config/priv_validator_key.json
  1. delegate to validator node0 and wait some blocks: fn delegate -n 1000000000000 --validator=611C922247C3BE7EA13455B191B6EFD909F10196
  1. setup to node0: fn setup -O node0.mnemonic
  1. fn unstake
  1. go back to wallet in 1. : fn setup -O node.mnemonic
  1. watch the status after about 18 blocks: fn show, bond=0, unbond=0, reward != 0.
@tiannian tiannian added the bug Something isn't working label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants