Revert "[NO-MERGE; needs gating logic] Introduce eager rent collection (bp #9527) (#10022)" (#10026)

This reverts commit ff21251416.
This commit is contained in:
Ryo Onodera
2020-05-13 22:51:59 +09:00
committed by GitHub
parent ff21251416
commit 3474419111
9 changed files with 35 additions and 1003 deletions

View File

@@ -85,12 +85,6 @@ pub type Segment = u64;
/// some number of Slots.
pub type Epoch = u64;
/// SlotIndex is an index to the slots of a epoch
pub type SlotIndex = u64;
/// SlotCount is the number of slots in a epoch
pub type SlotCount = u64;
/// UnixTimestamp is an approximate measure of real-world time,
/// expressed as Unix time (ie. seconds since the Unix epoch)
pub type UnixTimestamp = i64;

View File

@@ -78,14 +78,6 @@ impl Hash {
pub fn new(hash_slice: &[u8]) -> Self {
Hash(<[u8; HASH_BYTES]>::try_from(hash_slice).unwrap())
}
pub const fn new_from_array(hash_array: [u8; HASH_BYTES]) -> Self {
Self(hash_array)
}
pub fn to_bytes(self) -> [u8; HASH_BYTES] {
self.0
}
}
/// Return a Sha256 hash for the given data.