Skip to content

Prevent unstake call from allowing zero amount#165

Merged
Rubberbandits merged 1 commit intomainfrom
stake/disallow-zero-unstake
Jul 13, 2023
Merged

Prevent unstake call from allowing zero amount#165
Rubberbandits merged 1 commit intomainfrom
stake/disallow-zero-unstake

Conversation

@Rubberbandits
Copy link
Contributor

Description

This PR fixes an issue which allows remove_stake extrinsics to be pushed to the network with an amount of zero.


Checklist

  • Updated relevant tests
  • No new compiler warnings

@Rubberbandits Rubberbandits requested a review from eduardogr July 13, 2023 17:45
@Rubberbandits Rubberbandits merged commit 01f89a5 into main Jul 13, 2023
@Rubberbandits Rubberbandits deleted the stake/disallow-zero-unstake branch July 17, 2023 20:22
Rubberbandits pushed a commit that referenced this pull request Aug 21, 2023
* Add motion duration argument to Collective::propose with minimum duration

* Update CouncilMotionDuration 6 DAYS -> 12 HOURS

* Up spec_version -> 127

* Fix testing and benchmarks for propose change and auto threshold

* 🤖 🧈 Reformat source code

* Remove husky hooks for pre-push, pre-commit, post-commit (#162)

* Prevent unstake call from allowing zero amount (#165)

* Remove senate instance of collective pallet (#166)

* Add scheduler pallet to runtime (#164)

* Add scheduler pallet to runtime

* Update runtime/src/lib.rs

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* Remove unused validator-related hyperparameters (#167)

* Fix PrivilegeCmp invalid origin enum in runtime

* Cargo fix run, eliminating all compiler warnings (#169)

* Up DefaultWeightsSetRateLimit -> 100 (#168)

* Up DefaultWeightsSetRateLimit -> 100

* Fix weight rate limit tests

* Run cargo fmt on workspace (#170)

* Emergency fix for block_step when dealing with empty networks

* Decrease max weight limit (#149)

* update version key for netuid 1

* decrease max weight limit

* Update hyperparameters.md

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* keep emission set event

* run cargo fmt

---------

Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants