Skip to content

Commit

Permalink
Merge pull request #965 from golemfactory/mgordel/providers-preset-fix
Browse files Browse the repository at this point in the history
test: decreased price in provider presets
  • Loading branch information
mgordel authored Jun 6, 2024
2 parents 247a7cf + 6fff457 commit 842c5ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/market/market.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ export class MarketModuleImpl implements MarketModule {

if (!result) {
this.events.emit("offerProposalRejectedByFilter", proposal);
this.logger.debug("The offer was rejected by the user filter", { id: proposal.id });
}

return result;
Expand All @@ -641,6 +642,10 @@ export class MarketModuleImpl implements MarketModule {
}
if (!isPriceValid) {
this.events.emit("offerProposalRejectedByPriceFilter", proposal);
this.logger.debug("The offer was rejected because the price was too high", {
id: proposal.id,
pricing: proposal.pricing,
});
}
return isPriceValid;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/docker/data-node/ya-provider/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pricing-model": "linear",
"initial-price": 0.0,
"usage-coeffs": {
"golem.usage.cpu_sec": 0.100000001,
"golem.usage.cpu_sec": 0.0001,
"golem.usage.duration_sec": 0.0
}
},
Expand All @@ -25,7 +25,7 @@
"pricing-model": "linear",
"initial-price": 0.0,
"usage-coeffs": {
"golem.usage.cpu_sec": 0.100000001,
"golem.usage.cpu_sec": 0.0001,
"golem.usage.duration_sec": 0.0
}
}
Expand Down

0 comments on commit 842c5ae

Please sign in to comment.