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

Change FetchInitialMaxFinalizedBlockNumber interface #132

Conversation

samsondav
Copy link
Contributor

No description provided.

@@ -181,7 +181,7 @@ type ReportCodec interface {
type Fetcher interface {
// FetchInitialMaxFinalizedBlockNumber should fetch the initial max
// finalized block number from the mercury server.
FetchInitialMaxFinalizedBlockNumber(context.Context) (int64, error)
FetchInitialMaxFinalizedBlockNumber(context.Context) (*int64, error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit/ did you consider using -1 instead of nil to avoid the signature change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but it's even more confusing because -1 is actually a valid value that is used already

@samsondav samsondav merged commit bbcb3a9 into main Jun 20, 2023
@samsondav samsondav deleted the MERC-954-mercury-feeds-should-probably-start-at-the-first-block-number-not-at-zero branch June 20, 2023 17:17
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.

2 participants