iotexproject / iotex-core

Official implementation of IoTeX blockchain protocol in Go.
https://iotex.io
Apache License 2.0
1.55k stars 322 forks source link

[staking] candidate revoke endorsement #4310

Closed envestcc closed 5 days ago

envestcc commented 1 week ago

Description

The current system's design to delay the effectiveness of endorsement withdrawal greatly increases the system's complexity and maintenance costs. In order to simplify the system, the following adjustments have been made:

  1. introduce candidateRevokeEndorsement to revoke endorsement instead of auto-expired
  2. refactor candidateEndorsement action

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Checklist: