AmbireTech / adex-supermarket

Rust implementation of the AdEx Supermarket
GNU Affero General Public License v3.0
0 stars 0 forks source link

Decoupling the Supermarket from the Market #23

Closed elpiel closed 3 years ago

elpiel commented 4 years ago

Since the Supermarket is very dependant on the Market to retrieve the campaigns, it makes the Supermarket work quite obsolete (apart from safety & performance). This is why we want to make the changes to decouple it from the Market and instead fetch the campaigns from the validators in a configured list .

Changes:

  1. [x] PR #24 Configuration list of validators to fetch the campaigns from (instead of the market)
  2. [x] PR #24 Fetch the active (channel.valid_until > Now) campaigns (and compute their status)

TODOs:

The flow stays the same:

elpiel commented 3 years ago

Closing issue as all tasks are solved.

This is not really required since the get_status will check all validators and if they don't agree a bad status will be returned:

Check ChannelId when Channel is fetched from Validator: https://github.com/AdExNetwork/adex-validator-stack-rust/blob/dev/adapter/src/ethereum.rs#L162-L173~