Skip to content

Commit

Permalink
patch the validator is valid issue on unjailing
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Oct 29, 2023
1 parent b0428ac commit 6c8850c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions framework/libra-framework/sources/modified_source/stake.move
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,10 @@ module diem_framework::stake {


//////// 0L ////////
// TODO: v7
#[view]
/// Returns the validator's state.
public fun is_valid(addr: address): bool acquires ValidatorSet{
get_validator_state(addr) == VALIDATOR_STATUS_ACTIVE
public fun is_valid(addr: address): bool {
exists<ValidatorConfig>(addr)
}


Expand Down

0 comments on commit 6c8850c

Please sign in to comment.