yagna icon indicating copy to clipboard operation
yagna copied to clipboard

The constraints generated for the demand decorations improperly apply "alternative" operator

Open grisha87 opened this issue 11 months ago • 0 comments

Context

We want to get offers for the testnet goerli. The decorations produce the following constraints, which leads to getting offers from mainnet.

Actual result

Proposal demand {
	constraints: '(&(golem.inf.mem.gib>=0.5)\n' +
        '\t(golem.inf.storage.gib>=2)\n' +
	'\t(golem.runtime.name=vm)\n' +
	'\t(golem.inf.cpu.cores>=1)\n' +
	'\t(golem.inf.cpu.threads>=1)\n' +
	'\t(|\n' +
		' (golem.com.payment.platform.erc20-goerli-them.address=*)\n' +
		' (golem.com.payment.protocol.version=*)\n' +
		' (golem.com.payment.protocol.version>1)\n' +
	')\n' +
	'\t(golem.com.pricing.model=linear)\n' +
'\t(golem.node.debug.subnet=public))

Expected result

We wouldn't like to get the offers from mainnet when we're interested in testnet.

grisha87 avatar Mar 01 '24 10:03 grisha87