Skip to content

Conversation

@tholonious
Copy link
Contributor

No description provided.

@tholonious
Copy link
Contributor Author

tholonious commented Jul 18, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

}

func (bav *UtxoView) ShouldJailValidator(validatorEntry *ValidatorEntry, blockHeight uint64) (bool, error) {
// Return false if we haven't switched from PoW to PoS yet. Otherwise,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition does not belong here. The caller should determine ahead of time if the block height is past the PoS consensus cutover.

The role of this function should be simple: given a validator, determine if that validator is inactive based on the attributes of that validator.

@tholonious tholonious requested a review from lazynina July 18, 2023 17:25
@tholonious tholonious marked this pull request as ready for review July 18, 2023 17:25
@tholonious tholonious requested a review from a team as a code owner July 18, 2023 17:25
Base automatically changed from Revert_UtxoOp_Emits_in_Stake_Reward_Distribtion to feature/pos-staker-snapshotting-and-rewards July 18, 2023 17:51
@tholonious tholonious force-pushed the Filter_validator_jailing_to_just_the_current_validator_set branch from 401091b to 6f10bf0 Compare July 18, 2023 18:02
@tholonious tholonious merged commit a51e6ea into feature/pos-staker-snapshotting-and-rewards Jul 18, 2023
@tholonious tholonious deleted the Filter_validator_jailing_to_just_the_current_validator_set branch July 18, 2023 18:11
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