iotexproject / iotexproject/iotex-core
Cannot restake to larger duration in native staking
- Dominant language
- Go
- Stars
- 1.6k
- Forks
- 382
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 17
Description
### What version of iotex-core image (or code branch) are you using?
v1.14.0
### What operating system and processor architecture are you using?
macOS m1
### What did you do? If possible, provide a recipe for reproducing the error.
I staked a native bucket for 92 days, and then restake to 79 days at 20 days later
### What did you expect to see?
restake action should success
### What did you see instead?
Error reduce duration before maturity
Contributor guide
Research direction
No file or test is named. Start by reproducing the native staking case on v1.14.0: restake a 92-day bucket to 79 days after 20 days, then trace the validation producing “reduce duration before maturity.” Done means the intended restake succeeds and a regression test covers this duration change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100