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

Add /block idempotency requirement #26

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

matheusd
Copy link
Contributor

This adds a requirement that all calls to the /block endpoint be
idempotent when identifying a block by hash.

This ensures blocks are inalterable and clients can safely assume that
once they've received a specific block from a Rosetta implementation
that block won't change.

The discussion that prompted this is here

Copy link
Contributor

@patrick-ogrady patrick-ogrady left a comment

Choose a reason for hiding this comment

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

Nice!

This adds a requirement that all calls to the /block endpoint be
idempotent when identifying a block by hash.

This ensures blocks are inalterable and clients can safely assume that
once they've received a specific block from a Rosetta implementation
that block won't change.
@matheusd matheusd force-pushed the inalterable-blocks branch from f87217c to d909dc6 Compare July 23, 2020 18:27
@patrick-ogrady patrick-ogrady merged commit a3a6607 into coinbase:master Jul 23, 2020
@matheusd matheusd deleted the inalterable-blocks branch July 27, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants