block-core / angor

Angor is a decentralized crowdfunding platform built on Bitcoin and nostr.
http://beta.angor.io/
Other
19 stars 7 forks source link

Check Primary Relays Before Project Submission #116

Open miladsoft opened 3 months ago

miladsoft commented 3 months ago

Before we submit a project to the indexer, we need to make sure it is published in the primary relays listed in Angor. If a project isn't in these relays, it might show up in the display but won’t be accessible or have any information available.

Steps to Reproduce:

  1. Submit a project to the indexer.
  2. Check if the project is published in the primary relays in Angor.
  3. See if you can access the project in the relays.

Expected Outcome:

The project should be published in all primary relays before it gets submitted to the indexer, so it’s accessible and information is available.

Current Problem:

Projects not in the primary relays might show up but won’t be accessible or have any information.

Proposed Fix:

Add a check to make sure the project is published in all primary relays before submitting it to the indexer. This will help avoid issues with accessibility and missing information.

miladsoft commented 3 months ago

image

dangershony commented 3 months ago

Add a check to make sure the project is published in all primary relays before submitting it to the indexer. This will help avoid issues with accessibility and missing information.

I agree, this is probably very important. Additionally we must allow to publish to any new relay, for example if we add a relay and want project metadata stored there (though perhaps such option must be allowed only by the founder?)

DavidGershony commented 3 months ago

The relays can change for each user, we don't have control over that. Also the relays can change for the user between browers as well, we should perhaps add a link to the settings to add the missing relay?

miladsoft commented 3 months ago

However, we must check that if there is no active relay, the project should not be registered at all

DavidGershony commented 3 months ago

We first create the profile on nostr when you click next, than we add the project details and only on the last step we publish to the blockchain.

DavidGershony commented 3 months ago

Also if you want to have a project using a relay that whitelists users other users won't be able to see the project info..

dangershony commented 3 months ago

Projects not in the primary relays might show up but won’t be accessible or have any information.

I think this is ok, it is as designed if you get a project from indexer but don't have the relay we don't show it.

The project should be published in all primary relays before it gets submitted to the indexer, so it’s accessible and information is available.

This is already the case now no?