Created
February 10, 2019 23:58
-
-
Save konchunas/364f6f89be292ab1b9207ee7adfbf051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Genesis { | |
timestamp: ST0, | |
prev_hashes: ST1, | |
} | |
impl Genesis { | |
fn __init__<T0>(&self, creation_time: T0) { | |
self.timestamp = creation_time; | |
self.prev_hashes = vec![]; | |
} | |
fn get_hash<RT>(&self) -> RT { | |
return self.precalculated_genesis_hash; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment