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

Use integer, not string for block index in chainHead_follow events #84

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Aug 29, 2023

Closes #83

/cc @tomaka @josepot @lexnv

@jsdw jsdw requested a review from josepot September 1, 2023 09:00
Copy link
Contributor

@josepot josepot left a comment

Choose a reason for hiding this comment

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

As I already mentioned before: this change makes sense to me. However, I would like to make sure that @tomaka is also on board with this.

Copy link
Contributor

@tomaka tomaka left a comment

Choose a reason for hiding this comment

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

As you said, the API should be consistent. The archive API also uses hexadecimal strings to represent block heights. However, given that the maximum "safe" number in JavaScript is 2^53 – 1, it's safe to adjust the archive API as well.

@jsdw
Copy link
Collaborator Author

jsdw commented Sep 12, 2023

I'll merge this since @lexnv's PR #90 changes block heighs to integers

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.

transaction_submitAndWatch: consider returning "index" as integer, not string
4 participants