Skip to content

Commit

Permalink
public update_time
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Aug 13, 2023
1 parent ddfe3d5 commit 639f8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_chain/fork_choice/fork_choice.nim
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func contains*(self: ForkChoiceBackend, block_root: Eth2Digest): bool =
## In particular, before adding a block, its parent must be known to the fork choice
self.proto_array.indices.contains(block_root)

proc update_time(self: var ForkChoice, dag: ChainDAGRef, time: BeaconTime):
proc update_time*(self: var ForkChoice, dag: ChainDAGRef, time: BeaconTime):
FcResult[void] =
# `time` is the wall time, meaning it changes on every call typically
const step_size = seconds(SECONDS_PER_SLOT.int)
Expand Down

0 comments on commit 639f8ec

Please sign in to comment.