Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pallet-tfgrid): rework change power target on node #934

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

renauter
Copy link
Collaborator

@renauter renauter commented Jan 11, 2024

Description

Make sure that node has no active contracts on it to be able to change its PowerTarget to Down when calling change_power_target() extrinsic.

Loose pallet coupling (see doc here ) was used between pallet-smart-contract and pallet-tfgrid to avoid cyclic dependency.

Related Issues:

Checklist:

@renauter renauter marked this pull request as ready for review January 11, 2024 02:15
@renauter renauter requested a review from sameh-farouk January 22, 2024 14:51
@renauter renauter requested a review from sameh-farouk January 24, 2024 15:43
@renauter renauter merged commit 3a9f332 into development Jan 24, 2024
2 checks passed
@renauter renauter deleted the feat_rework_change_power_target branch January 24, 2024 16:20
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.

Check if node have active contracts before changing the power target to down
2 participants