Merge pull request #156 from lbryio/valid_channel_signatures_rename

claim_search --valid_channel_signatures was renamed to --valid_channel_signature
This commit is contained in:
Sean Yesmunt 2019-06-25 02:39:02 -04:00 committed by GitHub
commit 3c862e72b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

10
dist/bundle.es.js vendored
View file

@ -2000,11 +2000,7 @@ function doResolveUris(uris, returnCachedClaims = false) {
result.stream = uriResolveInfo; result.stream = uriResolveInfo;
if (uriResolveInfo.signing_channel) { if (uriResolveInfo.signing_channel) {
result.channel = uriResolveInfo.signing_channel; result.channel = uriResolveInfo.signing_channel;
<<<<<<< HEAD
result.claimsInChannel = uriResolveInfo.signing_channel.meta && uriResolveInfo.signing_channel.meta.claims_in_channel || 0; result.claimsInChannel = uriResolveInfo.signing_channel.meta && uriResolveInfo.signing_channel.meta.claims_in_channel || 0;
=======
result.claimsInChannel = uriResolveInfo.meta && uriResolveInfo.meta.claims_in_channel || 0;
>>>>>>> add tags
} }
} }
// $FlowFixMe // $FlowFixMe
@ -2125,11 +2121,7 @@ function doFetchClaimsByChannel(uri, page = 1) {
lbryProxy.claim_search({ lbryProxy.claim_search({
channel: uri, channel: uri,
<<<<<<< HEAD valid_channel_signature: true,
valid_channel_signatures: true,
=======
is_controlling: true,
>>>>>>> add tags
page: page || 1, page: page || 1,
order_by: ['release_time'] order_by: ['release_time']
}).then(result => { }).then(result => {

View file

@ -3,8 +3,7 @@
declare type Claim = StreamClaim | ChannelClaim; declare type Claim = StreamClaim | ChannelClaim;
declare type ChannelClaim = GenericClaim & { declare type ChannelClaim = GenericClaim & {
is_channel_signature_valid?: boolean, // we may have signed channels in the future, fixes some flow issues for now. is_channel_signature_valid?: boolean, // we may have signed channels in the future
signing_channel?: ChannelClaim,
value: ChannelMetadata, value: ChannelMetadata,
}; };

View file

@ -200,7 +200,7 @@ export function doFetchClaimsByChannel(uri: string, page: number = 1) {
Lbry.claim_search({ Lbry.claim_search({
channel: uri, channel: uri,
valid_channel_signatures: true, valid_channel_signature: true,
page: page || 1, page: page || 1,
order_by: ['release_time'], order_by: ['release_time'],
}).then((result: ClaimSearchResponse) => { }).then((result: ClaimSearchResponse) => {