AmbireTech / adex-supermarket

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

Compare output of JS & Rust versions of /units-for-slot #30

Closed elpiel closed 3 years ago

elpiel commented 3 years ago

Make sure that the Market and Supermarket implementations of /units-for-slot are aligned and return the same results.

Maybe we could do the following:

TODOs:

simzzz commented 3 years ago

Solution in market: https://github.com/AdExNetwork/adex-market/pull/167

Solution in supermarket: https://github.com/AdExNetwork/adex-supermarket/pull/26/commits/fc5d672829b92ec404a4967cf48d5941d226e72c

I went for the simple ways to just get the output using constant test data. Feedback is appreciated. @elpiel

elpiel commented 3 years ago

LGTM, I've left 2 nitpicks and we might look into making a full README, but it's not a priority for this task.

The question I am more concerned - Do the JS & Rust impls actually align?

elpiel commented 3 years ago

Since the PRs #37 & https://github.com/AdExNetwork/adex-validator-stack-rust/pull/355 this has been checked and any issues were fixed.

I consider this closed