8000 Validator unstake will make other delegator's reward leak. · Issue #197 · FindoraNetwork/platform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Validator unstake will make other delegator's reward leak. #197
Open
@shaitao

Description

@shaitao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0