mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Change "canonical_root" of block to be signed root
This commit is contained in:
@@ -61,11 +61,11 @@ impl BeaconBlock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the `tree_hash_root | update` of the block.
|
/// Returns the `signed_root` of the block.
|
||||||
///
|
///
|
||||||
/// Spec v0.6.3
|
/// Spec v0.6.3
|
||||||
pub fn canonical_root(&self) -> Hash256 {
|
pub fn canonical_root(&self) -> Hash256 {
|
||||||
Hash256::from_slice(&self.tree_hash_root()[..])
|
Hash256::from_slice(&self.signed_root()[..])
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a full `BeaconBlockHeader` of this block.
|
/// Returns a full `BeaconBlockHeader` of this block.
|
||||||
|
|||||||
Reference in New Issue
Block a user