lbryio / hub

MIT License
16 stars 15 forks source link

incorrect claim returned in resolve (when there's a collision on name in channel) #16

Closed tzarebczan closed 2 years ago

tzarebczan commented 2 years ago

Hablando-de-Bitcoin-y-Criptomonedas#b was asked for, hablando-de-bitcoin-y-criptomonedas#3 was returned

This doesn't happen often, but there are cases of it.

See:

(lbry-venv) C:\Users\thoma\Documents\lbry-sdk>lbrynet resolve lbry://@criptomonedastv#6/Hablando-de-Bitcoin-y-Criptomonedas#b
{
  "lbry://@criptomonedastv#6/Hablando-de-Bitcoin-y-Criptomonedas#b": {
    "address": "bR81DLPEwTwkMQLqNz48jPtPZFEWJoTcUJ",
    "amount": "0.005",
    "canonical_url": "lbry://@criptomonedastv#6/hablando-de-bitcoin-y-criptomonedas#3",
    "claim_id": "3462d2d415ecd3821ed02bcca15d28847ecab681",
    "claim_op": "update",
    "confirmations": 388845,
    "height": 664642,
    "is_channel_signature_valid": true,
    "meta": {
      "activation_height": 664642,
      "creation_height": 462851,
      "creation_timestamp": 1541135509,
      "effective_amount": "41.02061598",
      "expiration_height": 2767042,
      "is_controlling": false,
      "reposted": 0,
      "support_amount": "41.01561598",
      "take_over_height": 1003910,
      "trending_global": 0.0,
      "trending_group": 0,
      "trending_local": 0.0,
      "trending_mixed": 0.0
    },
    "name": "hablando-de-bitcoin-y-criptomonedas",
    "normalized_name": "hablando-de-bitcoin-y-criptomonedas",
    "nout": 0,
    "permanent_url": "lbry://hablando-de-bitcoin-y-criptomonedas#3462d2d415ecd3821ed02bcca15d28847ecab681",
    "short_url": "lbry://hablando-de-bitcoin-y-criptomonedas#3",
    "signing_channel": {
      "address": "bR81DLPEwTwkMQLqNz48jPtPZFEWJoTcUJ",
tzarebczan commented 2 years ago

This issue recently surfaced for a VIP creator. Should be quick one to solve, I know @jackrobison looked into it at some point.