Add updated structure for response api call based on SDK 38 release. #61

Merged
tiger5226 merged 1 commit from go_sdk38_client_updates into master 2019-07-10 03:47:30 +02:00
tiger5226 commented 2019-06-24 06:29:50 +02:00 (Migrated from github.com)
No description provided.
anbsky (Migrated from github.com) reviewed 2019-06-24 10:57:31 +02:00
anbsky (Migrated from github.com) commented 2019-06-24 10:57:31 +02:00

Naming this something like ClaimMeta would be beneficial

Naming this something like `ClaimMeta` would be beneficial
anbsky commented 2019-06-24 11:16:52 +02:00 (Migrated from github.com)

My streaming tests using this code seem to be passing well, thanks 👍

My streaming tests using this code seem to be passing well, thanks 👍
tiger5226 (Migrated from github.com) reviewed 2019-06-25 02:02:19 +02:00
tiger5226 (Migrated from github.com) commented 2019-06-25 02:02:19 +02:00

I would, but I think it more valuable to align with the response from the SDK which uses meta. All of these fields map to the SDK response. @eukreign why the name meta instead of something like claim_meta? I think @sayplastic has a point. Just curious.

I would, but I think it more valuable to align with the response from the [SDK](https://lbry.tech/api/sdk#resolve) which uses `meta`. All of these fields map to the SDK response. @eukreign why the name `meta` instead of something like `claim_meta`? I think @sayplastic has a point. Just curious.
eukreign (Migrated from github.com) reviewed 2019-06-25 03:06:05 +02:00
eukreign (Migrated from github.com) commented 2019-06-25 03:06:05 +02:00

In JSON it's meta because it's already inside of the claim value, so it would be redundant to say claim. Since you're working with a flatter namespace you should definitely call it ClaimMeta here to not be ambiguous.

In JSON it's `meta` because it's already inside of the claim value, so it would be redundant to say `claim`. Since you're working with a flatter namespace you should definitely call it ClaimMeta here to not be ambiguous.
eukreign (Migrated from github.com) reviewed 2019-06-25 03:07:52 +02:00
eukreign (Migrated from github.com) commented 2019-06-25 03:07:52 +02:00

@tiger5226 @sayplastic Also, just fyi, the metadata is sent from wallet server to the client via this protobuf, which is called ClaimMeta: https://github.com/lbryio/types/blob/master/v2/proto/result.proto#L22

@tiger5226 @sayplastic Also, just fyi, the metadata is sent from wallet server to the client via this protobuf, which is called `ClaimMeta`: https://github.com/lbryio/types/blob/master/v2/proto/result.proto#L22
nikooo777 (Migrated from github.com) approved these changes 2019-07-02 03:32:19 +02:00
nikooo777 (Migrated from github.com) left a comment

LGTM

LGTM
nikooo777 (Migrated from github.com) commented 2019-07-02 03:31:12 +02:00

int? are you sure?

int? are you sure?
tiger5226 (Migrated from github.com) reviewed 2019-07-02 03:34:16 +02:00
tiger5226 (Migrated from github.com) commented 2019-07-02 03:34:16 +02:00

I based it off of a different timestamp elsewhere. I checked and you had added that timestamp. So the real question is..."are you sure?". #ITrustNiko

I based it off of a different timestamp elsewhere. I checked and you had added that timestamp. So the real question is..."are you sure?". #ITrustNiko
eukreign (Migrated from github.com) reviewed 2019-07-02 03:42:45 +02:00
eukreign (Migrated from github.com) commented 2019-07-02 03:42:45 +02:00

that value comes directly from the blockchain header file, it's a 32 bit unsigned integer:
https://en.bitcoin.it/wiki/Protocol_documentation#Block_Headers

that value comes directly from the blockchain header file, it's a 32 bit unsigned integer: https://en.bitcoin.it/wiki/Protocol_documentation#Block_Headers
nikooo777 (Migrated from github.com) reviewed 2019-07-08 13:18:49 +02:00
nikooo777 (Migrated from github.com) commented 2019-07-08 13:18:49 +02:00

okay, the default is 32bit in go so we're good. Not unsigned but not a big deal.

okay, the default is 32bit in go so we're good. Not unsigned but not a big deal.
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/lbry.go#61
No description provided.