Rename genesis_block.last_id() to genesis_block.hash()

This commit is contained in:
Michael Vines
2019-03-01 09:49:37 -08:00
parent 028f41eb51
commit 224b705f8d
7 changed files with 52 additions and 52 deletions

View File

@ -56,7 +56,7 @@ impl GenesisBlock {
)
}
pub fn last_id(&self) -> Hash {
pub fn hash(&self) -> Hash {
let serialized = serde_json::to_string(self).unwrap();
hash(&serialized.into_bytes())
}