Update Lockup comments (#7692)

This commit is contained in:
Rob Walker 2020-01-06 19:52:20 -08:00 committed by GitHub
parent e5425d4a27
commit 8dad3af36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -86,15 +86,17 @@ pub enum StakeAuthorize {
#[derive(Default, Debug, Serialize, Deserialize, PartialEq, Clone, Copy)] #[derive(Default, Debug, Serialize, Deserialize, PartialEq, Clone, Copy)]
pub struct Lockup { pub struct Lockup {
/// UnixTimestamp at which this stake will allow withdrawal, unless /// UnixTimestamp at which this stake will allow withdrawal, or
/// to the custodian. /// changes to authorized staker or withdrawer, unless the
/// transaction is signed by the custodian
pub unix_timestamp: UnixTimestamp, pub unix_timestamp: UnixTimestamp,
/// epoch height at which this stake will allow withdrawal, unless /// epoch height at which this stake will allow withdrawal, or
/// changes to authorized staker or withdrawer, unless the
/// transaction is signed by the custodian
/// to the custodian /// to the custodian
pub epoch: Epoch, pub epoch: Epoch,
/// custodian account, the only account to which this stake will honor a /// custodian signature on a transaction exempts the operation from
/// withdrawal before lockup expires. After lockup expires, custodian /// lockup constraints
/// is irrelevant
pub custodian: Pubkey, pub custodian: Pubkey,
} }