Skip to content

Commit

Permalink
claim activations and takeovers (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrobison committed May 5, 2021
1 parent c15a1ec commit e9a61a2
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 124 deletions.
5 changes: 2 additions & 3 deletions lbry/schema/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def to_base64(cls, txo_rows, extra_txo_rows, offset=0, total=None, blocked=None)

@classmethod
def to_bytes(cls, txo_rows, extra_txo_rows, offset=0, total=None, blocked: Censor = None) -> bytes:
extra_txo_rows = {row['claim_hash']: row for row in extra_txo_rows}
page = OutputsMessage()
page.offset = offset
if total is not None:
Expand Down Expand Up @@ -208,7 +207,7 @@ def encode_txo(cls, txo_message, resolve_result: Union['ResolveResult', Exceptio

if resolve_result.canonical_url is not None:
txo_message.claim.canonical_url = resolve_result.canonical_url
if resolve_result.last_take_over_height is not None:
txo_message.claim.take_over_height = resolve_result.last_take_over_height
if resolve_result.last_takeover_height is not None:
txo_message.claim.take_over_height = resolve_result.last_takeover_height
if resolve_result.claims_in_channel is not None:
txo_message.claim.claims_in_channel = resolve_result.claims_in_channel
Loading

0 comments on commit e9a61a2

Please sign in to comment.