From 0e2e13f0180f5d665418189ec7b607d32f3acc99 Mon Sep 17 00:00:00 2001 From: Sagar Dhawan Date: Mon, 2 Dec 2019 11:57:40 -0800 Subject: [PATCH] Update usages of u64 to Slot (#7191) automerge --- runtime/src/bank.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 7a527b3afe..af11632135 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -180,7 +180,7 @@ pub struct Bank { /// Hash of this Bank's parent's state parent_hash: Hash, - parent_slot: u64, + parent_slot: Slot, /// The number of transactions processed without error #[serde(serialize_with = "serialize_atomicu64")] @@ -665,7 +665,7 @@ impl Bank { self.rc.parent.read().unwrap().clone() } - pub fn parent_slot(&self) -> u64 { + pub fn parent_slot(&self) -> Slot { self.parent_slot }