Skip to content

Commit ec7303f

Browse files
committed
update comment
1 parent e43afcd commit ec7303f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,11 @@ mod dispatches {
551551
Self::do_increase_take(origin, hotkey, take)
552552
}
553553

554-
/// --- Adds stake to a hotkey. The call is made from the
555-
/// coldkey account linked in the hotkey.
556-
/// Only the associated coldkey is allowed to make staking and
557-
/// unstaking requests. This protects the neuron against
558-
/// attacks on its hotkey running in production code.
554+
/// --- Adds stake to a hotkey. The call is made from a coldkey account.
555+
/// This delegates stake to the hotkey.
556+
///
557+
/// Note: the coldkey account may own the hotkey, in which case they are
558+
/// delegating to themselves.
559559
///
560560
/// # Args:
561561
/// * 'origin': (<T as frame_system::Config>Origin):

0 commit comments

Comments
 (0)