Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename slotStartingAtOrJust{After,Before} to slot{Ceiling,Floor}. #636

Merged
merged 1 commit into from Aug 20, 2019

Conversation

jonathanknowles
Copy link
Member

Issue Number

None.

Overview

The functions slotStartingAtOrJustAfter and slotStartingAtOrJustBefore are a bit of a mouthful.

The behaviour of these functions is equivalent to finding either the ceiling or the floor of a given slot.

Therefore, we rename these functions to slotCeiling and slotFloor, respectively.

Comments

A further PR will correct the behaviour (and type) of slotFloor so that it doesn't return a slot when the specified time occurs before the start of the blockchain.

@jonathanknowles jonathanknowles self-assigned this Aug 20, 2019
@jonathanknowles jonathanknowles force-pushed the jonathanknowles/slot-ceiling-floor branch from da2805b to 5f4bf50 Compare August 20, 2019 08:44
@jonathanknowles jonathanknowles merged commit 41afad2 into master Aug 20, 2019
@rvl rvl deleted the jonathanknowles/slot-ceiling-floor branch August 29, 2019 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants