allow rest/block/height.json #275

Merged
BrannonKing merged 1 commit from expanded_rest_interface into master 2019-05-13 23:04:20 +02:00
BrannonKing commented 2019-05-09 22:30:21 +02:00 (Migrated from github.com)

This is for Flipside crypto. It allows them to use our SSL rest endpoint (rest.lbry.tech) for their query analysis.

This is for Flipside crypto. It allows them to use our SSL rest endpoint (rest.lbry.tech) for their query analysis.
bvbfan (Migrated from github.com) reviewed 2019-05-13 08:09:17 +02:00
@ -211,0 +210,4 @@
blockHeight = hashStr.size() < 12 ? std::strtol(hashStr.c_str(), nullptr, 10) : 0;
if (blockHeight == 0 && !ParseHashStr(hashStr, hash))
return RESTERR(req, HTTP_BAD_REQUEST, "Invalid hash or block height: " + hashStr);
}
bvbfan (Migrated from github.com) commented 2019-05-13 08:08:55 +02:00

Some info or comment that we expect signed integer.

Some info or comment that we expect signed integer.
lbrynaut (Migrated from github.com) approved these changes 2019-05-13 19:55:10 +02:00
BrannonKing (Migrated from github.com) reviewed 2019-05-13 23:03:18 +02:00
@ -211,0 +210,4 @@
blockHeight = hashStr.size() < 12 ? std::strtol(hashStr.c_str(), nullptr, 10) : 0;
if (blockHeight == 0 && !ParseHashStr(hashStr, hash))
return RESTERR(req, HTTP_BAD_REQUEST, "Invalid hash or block height: " + hashStr);
}
BrannonKing (Migrated from github.com) commented 2019-05-13 23:03:18 +02:00

Fixed

Fixed
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#275
No description provided.