Skip to content

Conversation

unconst
Copy link
Contributor

@unconst unconst commented Sep 2, 2025

Description

Allow miners to set an auto stake destination so that mining income can be automatically staked to a validator of their choice.

@github-actions github-actions bot added the hotfix This PR needs to be merged very quickly and will likely skip testing on devnet and testnet label Sep 2, 2025
destination = AutoStakeDestination::<T>::get(&owner);
} else {
destination = hotkey.clone();
}
Self::increase_stake_for_hotkey_and_coldkey_on_subnet(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we emit an event here? This makes it way harder to account mining emissions vs staking emissions

Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't emit events in such cases in this file.

@shamil-gadelshin shamil-gadelshin self-assigned this Sep 2, 2025
@shamil-gadelshin shamil-gadelshin changed the base branch from main to devnet-ready September 2, 2025 14:31
@opentensor opentensor deleted a comment from github-actions bot Sep 2, 2025
@JohnReedV JohnReedV added skip-cargo-audit This PR fails cargo audit but needs to be merged anyway and removed hotfix This PR needs to be merged very quickly and will likely skip testing on devnet and testnet labels Sep 2, 2025
@sam0x17 sam0x17 merged commit a207d0b into devnet-ready Sep 3, 2025
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-cargo-audit This PR fails cargo audit but needs to be merged anyway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants