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

node-http: add check for height being below tip #760

Merged
merged 1 commit into from
May 3, 2019

Conversation

kilpatty
Copy link
Contributor

@kilpatty kilpatty commented May 1, 2019

This commit simply adds an enforce line to check that the height being
requested to reset to is below the chain tip. This way we return a bad
request error rather than an internal server error.

Ported from handshake-org/hsd#156

This commit simply adds an enforce line to check that the height being
requested to reset to is below the chain tip. This way we return a bad
request error rather than a internal server error.
@codecov-io

This comment has been minimized.

@braydonf
Copy link
Contributor

braydonf commented May 1, 2019

FWIW this endpoint also times out: #761

@braydonf braydonf merged commit d5514d9 into bcoin-org:master May 3, 2019
braydonf added a commit that referenced this pull request May 3, 2019
node-http: add check for height being below tip
@kilpatty kilpatty deleted the node-http-reset-enforce branch May 3, 2019 16:40
@braydonf braydonf added this to the 2.0.0 milestone Jan 6, 2020
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.

3 participants