Block used claims #68

Merged
bones7242 merged 6 commits from block-used-claims into master 2017-07-04 18:17:28 +02:00
bones7242 commented 2017-07-04 18:14:21 +02:00 (Migrated from github.com)
  1. added a column to the mysql File table for 'address' to track which address is associated with each downloaded file
  2. added an API route /api/isClaimAvailable/:name. This route checks the mysql File table for matching names, and if one is found it compares the address in the record with the spee.ch wallet's addresses to see if it was published via spee.ch. The route returns a boolean.
  3. before submitting a request to publish, the client checks the name availability via /api/isClaimAvailable.
  4. added server side check on name availability before publish because (a) race condition during upload time and also because (b) publish requests coming from other sources (e.g. /api/publish) need to be checked as well.
1. added a column to the mysql File table for 'address' to track which `address` is associated with each downloaded file 2. added an API route `/api/isClaimAvailable/:name`. This route checks the mysql File table for matching `name`s, and if one is found it compares the address in the record with the spee.ch wallet's addresses to see if it was published via spee.ch. The route returns a boolean. 3. before submitting a request to publish, the client checks the name availability via `/api/isClaimAvailable`. 4. added server side check on name availability before publish because (a) race condition during upload time and also because (b) publish requests coming from other sources (e.g. /api/publish) need to be checked as well.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#68
No description provided.