Update verify_transfer to spec v0.6.1

This commit is contained in:
Paul Hauner
2019-05-22 11:28:29 +10:00
parent 545fb10005
commit bb7ee642d8
2 changed files with 44 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ impl Validator {
/// Returns `true` if the validator is able to withdraw at some epoch.
pub fn is_withdrawable_at(&self, epoch: Epoch) -> bool {
self.withdrawable_epoch <= epoch
epoch >= self.withdrawable_epoch
}
}