Last active
September 26, 2018 03:52
-
-
Save jessopb/ebe6a6d1b401def755af756dd6061f75 to your computer and use it in GitHub Desktop.
Adding outpoint to resolve call results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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