mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Rename on_new_block fn
This commit is contained in:
@@ -119,10 +119,10 @@ impl ProtoArray {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Register a new block with the fork choice.
|
/// Register a block with the fork choice.
|
||||||
///
|
///
|
||||||
/// It is only sane to supply a `None` parent for the genesis block.
|
/// It is only sane to supply a `None` parent for the genesis block.
|
||||||
pub fn on_new_block(
|
pub fn on_block(
|
||||||
&mut self,
|
&mut self,
|
||||||
slot: Slot,
|
slot: Slot,
|
||||||
root: Hash256,
|
root: Hash256,
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ impl ProtoArrayForkChoice {
|
|||||||
};
|
};
|
||||||
|
|
||||||
proto_array
|
proto_array
|
||||||
.on_new_block(
|
.on_block(
|
||||||
finalized_block_slot,
|
finalized_block_slot,
|
||||||
finalized_root,
|
finalized_root,
|
||||||
None,
|
None,
|
||||||
@@ -117,7 +117,7 @@ impl ProtoArrayForkChoice {
|
|||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
self.proto_array
|
self.proto_array
|
||||||
.write()
|
.write()
|
||||||
.on_new_block(
|
.on_block(
|
||||||
slot,
|
slot,
|
||||||
block_root,
|
block_root,
|
||||||
Some(parent_root),
|
Some(parent_root),
|
||||||
|
|||||||
Reference in New Issue
Block a user