Skip to content

Instantly share code, notes, and snippets.

@jessopb
Last active September 26, 2018 03:52
Show Gist options
  • Select an option

  • Save jessopb/ebe6a6d1b401def755af756dd6061f75 to your computer and use it in GitHub Desktop.

Select an option

Save jessopb/ebe6a6d1b401def755af756dd6061f75 to your computer and use it in GitHub Desktop.
Adding outpoint to resolve call results
Docs for lbry api:
https://lbryio.github.io/lbry/#resolve
outpoint is not currently part of the result/response
lbry/lbrynet/wallet/resolve.py
outpoint could be manufactured and added to:
`
def _build_response(name, value, claim_id, txid, n, amount, effective_amount,
claim_sequence, claim_address, supports):
r = {
'name': name,
'value': hexlify(value),
'claim_id': claim_id,
'txid': txid,
'nout': n,
'amount': amount,
'effective_amount': effective_amount,
'height': height,
'depth': depth,
'claim_sequence': claim_sequence,
'address': claim_address,
'supports': supports
}
return r
`
something like
`
'outpoint': "{}:{}".format(txid,n),
`
This should only affect what gets sent out to clients? They would then have access to outpoint as a property on "Claim"
Then the docs would have to be updated: lbry/docs/api.json.
The Claim type in lbry-desktop could be updated.
lbry-desktop/src/renderer/types/claim.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment